Skip to main content

youngs_modulus

Function youngs_modulus 

Source
pub fn youngs_modulus(
    stress_pa: f64,
    strain: f64,
) -> Result<f64, ElasticityError>
Expand description

Computes Young’s modulus from stress and strain.

§Errors

Returns ElasticityError::InvalidStress when stress_pa is not finite, ElasticityError::InvalidStrain when strain is not finite or is zero, and ElasticityError::InvalidModulus when the computed modulus is not positive.