pub fn pdf(x: f64) -> f64Expand description
Standard normal probability density φ(x) = exp(−x²/2) / sqrt(2π).
Defined for every f64: NaN gives NaN, ±∞ gives 0. The relative
error is below 1e-14 wherever the result is a normal f64
(|x| ≲ 37.5); beyond that the result underflows gradually to 0.
§Examples
use moru_quant::math::normal;
assert!((normal::pdf(0.0) - 0.398_942_280_401_432_7).abs() < 1e-16);