pub fn stress_from_modulus(
modulus_pa: f64,
strain: f64,
) -> Result<f64, ElasticityError>Expand description
Computes stress from modulus and strain.
ยงErrors
Returns ElasticityError::InvalidModulus when modulus_pa is not finite or is less than or
equal to zero, and ElasticityError::InvalidStrain when strain is not finite.