Function mathlab::functions::num::exp

source ·
pub fn exp(x: f64) -> f64
Expand description

§exp(x)

Operation Function

The exp function defined as pow(E, x) raises the mathematical constant e to the power of x.

§Examples

use mathlab::math::{exp, E};
assert_eq!(exp(0.0), 1.0);
assert_eq!(exp(-1.0), 0.36787944117144233);
assert_eq!(exp(-1.0) as f32, 0.36787945);
assert_eq!(exp(1.0), E);

End Fun Doc