Skip to main content

activity

Function activity 

Source
pub fn activity(decay_constant: f64, number_of_nuclei: f64) -> Option<f64>
Expand description

Computes activity from a decay constant and number of nuclei.

Formula: A = lambda * N.

Activity is returned in becquerels when decay_constant is expressed per second.

ยงExamples

use use_nuclear::activity;

assert_eq!(activity(2.0, 10.0), Some(20.0));