SHIP:Sail:expm1

From Serious Documentation
Jump to: navigation, search
Function Returns Introduced Description
expm1 Float v5.1.0 Return e to the given power minus 1

See Also:

Prototype

Float expm1(Integer n);

Parameters/Return Value

Parameter Data Type Description
n Integer the number to raise e to the power of
Return Float the result of e^n - 1

Detailed Description

The expm1() function returns e to the power of a number minus 1.

Examples

Example Result Notes
expm1(0); 0.0
expm1(1); 1.718281...
expm1(-1); 0.367879...