Skip to main content

ln

Function ln 

Source
pub fn ln(x: f64) -> f64
Expand description

Natural logarithm via mantissa reduction and the atanh series.

Non-positive inputs are a domain error: ln(x) for x <= 0 returns NaN (which the dispatch layer maps to SQL NULL, matching SQLite’s ln(0) and ln(-1)), rather than the mathematical -∞ limit at zero.