Skip to main content

shear_modulus

Function shear_modulus 

Source
pub fn shear_modulus(shear_stress: f64, shear_strain: f64) -> Option<f64>
Expand description

Computes shear modulus from shear stress and shear strain.

Formula: G = τ / γ.

Returns None when shear_strain is zero, when the result is negative, or when any input or result is not finite.