pub fn log(x: f64) -> f64
The Math.log() function returns the natural logarithm (base e) of a number. The JavaScript Math.log() function is equivalent to ln(x) in mathematics.
Math.log()
MDN documentation