Skip to main content

average_power

Function average_power 

Source
pub fn average_power(work: f64, duration: f64) -> Result<f64, PowerError>
Expand description

Computes average power from total work and elapsed duration.

ยงErrors

Returns PowerError::NonPositiveDuration when duration is less than or equal to zero.