Function glm::builtin::log [] [src]

pub fn log<F: BaseFloat, T: GenFloat<F>>(x: T) -> T

Returns the natural logarithm of x. i.e., the value y which satisfies x = ey.

Example

use glm::{ log, ApproxEq };
use glm::ext::e;

let e1: f64 = e();
let e2 = e1 * e1;
assert!(log(e2).is_approx_eq(&2.));