Skip to main content

force_from_torque

Function force_from_torque 

Source
pub fn force_from_torque(applied_torque: f64, lever_arm: f64) -> Option<f64>
Expand description

Computes the force required to produce a known torque at a lever arm.

Formula: F = τ / r

Returns None when lever_arm is zero, when either input is not finite, or when the computed result is not finite.

§Examples

use use_torque::force_from_torque;

assert_eq!(force_from_torque(20.0, 2.0), Some(10.0));