Function shear_modulus_from_youngs_and_poisson
pub fn shear_modulus_from_youngs_and_poisson(
youngs_modulus: f64,
poisson_ratio: f64,
) -> Option<f64>Expand description
Computes shear modulus from Young’s modulus and Poisson’s ratio.
Formula: G = E / (2 * (1 + ν)).
Returns None when youngs_modulus is negative, when the denominator is zero, or when any
input or result is not finite.
§Examples
use use_elasticity::shear_modulus_from_youngs_and_poisson;
assert_eq!(shear_modulus_from_youngs_and_poisson(260.0, 0.3), Some(100.0));