Skip to main content

displacement_from_work

Function displacement_from_work 

Source
pub fn displacement_from_work(work: f64, force: f64) -> Option<f64>
Expand description

Computes the displacement implied by a work value and a constant force.

Formula: d = W / F

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