Skip to main content

angular_acceleration_from_torque

Function angular_acceleration_from_torque 

Source
pub fn angular_acceleration_from_torque(
    applied_torque: f64,
    moment_of_inertia: f64,
) -> Option<f64>
Expand description

Computes angular acceleration from torque and moment of inertia.

Formula: α = τ / I

Returns None when moment_of_inertia is less than or equal to zero, when either input is not finite, or when the computed result is not finite. Broader angular-motion helpers belong in a future or separate use-rotation crate.

§Examples

use use_torque::angular_acceleration_from_torque;

assert_eq!(angular_acceleration_from_torque(20.0, 4.0), Some(5.0));