Function psy_math::expm1_approx

source ·
pub fn expm1_approx(x: Number, terms: usize) -> Number
Expand description

Computes the Taylor expansion of exp(x) - 1, using the indicated number of terms. For example, expm1_approx(x, 3) = x + x^2 / 2 + x^3 / 6