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.