expm1 in libm - Rust
Description: Exponential, base e, of x-1 (f64)
Keywords: rust, rustlang, rust-lang, expm1

# Function libm::expm1

source ·

    pub fn expm1(x: f64) -> f64

Expand description

Exponential, base e, of x-1 (f64)

Calculates the exponential of `x` and subtract 1, that is, e raised to the power `x` minus 1 (where e is the base of the natural system of logarithms, approximately 2.71828). The result is accurate even for small values of `x`, where using `exp(x)-1` would lose many significant digits.