spinoso_math

Function exp

Source
pub fn exp(value: f64) -> f64
Expand description

Returns e**x.

Domain: (-INFINITY, INFINITY)

Codomain: (0, INFINITY)

ยงExamples

use spinoso_math as math;
assert_eq!(math::exp(0.0), 1.0);
assert_eq!(math::exp(1.0), E);
assert!((math::exp(1.5) - 4.4816890703380645).abs() < f64::EPSILON);