pub fn youngs_modulus(stress: f64, strain: f64) -> Option<f64>Expand description
Computes Young’s modulus from stress and strain.
Formula: E = σ / ε.
Returns None when strain is zero, when the result is negative, or when any input or result
is not finite.
§Examples
use use_elasticity::youngs_modulus;
assert_eq!(youngs_modulus(100.0, 0.01), Some(10_000.0));