Skip to main content

remaining_fraction_from_decay_constant

Function remaining_fraction_from_decay_constant 

pub fn remaining_fraction_from_decay_constant(
    decay_constant: f64,
    time: f64,
) -> Option<f64>
Expand description

Computes the remaining fraction from a decay constant and elapsed time.

Formula: N / N0 = exp(-lambda * t).