Skip to main content

work_by_friction

Function work_by_friction 

Source
pub fn work_by_friction(
    friction_force_magnitude: f64,
    displacement: f64,
) -> Option<f64>
Expand description

Computes work done by kinetic friction.

Formula: W = -f_k * abs(d)

Returns None when friction_force_magnitude is negative, when any input is not finite, or when the computed result is not finite.