Skip to main content

builtin_expm1

Function builtin_expm1 

Source
fn builtin_expm1(
    args: &[RValue],
    _: &[(String, RValue)],
) -> Result<RValue, RError>
Expand description

Numerically stable exp(x) - 1.

More accurate than exp(x) - 1 for x near zero, where catastrophic cancellation would otherwise lose precision.

@param x numeric vector @return numeric vector of exp(x) - 1