fn expm1(x: anytype) @TypeOf(x)

Returns e raised to the power of x, minus 1 (e^x - 1). This is more accurate than exp(e, x) - 1 when x is near 0.

Special Cases:

  • expm1(+inf) = +inf
  • expm1(-inf) = -1
  • expm1(nan) = nan

Parameters

x: anytype,