pub fn torque(force: f64, lever_arm: f64) -> Option<f64>Expand description
Computes torque from a force and lever arm.
Formula: τ = F * r
Returns None when either input is not finite or when the computed result is not finite.
Negative forces and lever arms are allowed.
§Examples
use use_torque::torque;
assert_eq!(torque(10.0, 2.0), Some(20.0));