SHIP:Sail:expm1

From Serious Documentation
Revision as of 14:44, 29 September 2016 by CarltonHeyer (talk | contribs) (Created page with "__NOTOC__ {{SailFuncTableStart|}}<onlyinclude> |{{SailFunc|expm1}}||{{DataType|Float}}||style="text-align:center;"|v5.1.0||Return e to the given power minus 1{{v5}}</onlyinclu...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function Returns Introduced Description
expm1 Float v5.1.0 Return e to the given power minus 1Badge SHIPv5.gif

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...