use-strain 0.0.1

Primitive engineering strain helpers
Documentation
  • Coverage
  • 7.69%
    1 out of 13 items documented1 out of 9 items with examples
  • Size
  • Source code size: 5.7 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 381.92 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 6s Average build duration of successful builds.
  • all releases: 6s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-materials
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

Primitive strain helpers.

Initial calculations assume SI units unless otherwise documented.

Examples

use use_strain::{Strain, engineering_strain, percent_strain, strain_from_change};

let strain = Strain::new(0.05).unwrap();
let engineering = engineering_strain(2.0, 2.1).unwrap();
let from_change = strain_from_change(2.0, 0.1).unwrap();

assert_eq!(strain.percent(), 5.0);
assert!((engineering - 0.05).abs() < 1.0e-12);
assert!((from_change - 0.05).abs() < 1.0e-12);
assert_eq!(percent_strain(0.05).unwrap(), 5.0);