Difference between revisions of "SHIP:Sail:expm1"

From Serious Documentation
Jump to: navigation, search
(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...")
 
Line 40: Line 40:
 
|<code>{{SailFunc|expm1}}(-1);</code> || 0.367879... ||
 
|<code>{{SailFunc|expm1}}(-1);</code> || 0.367879... ||
 
|}
 
|}
 +
 +
[[Categories: Numeric Functions]]

Revision as of 14:33, 4 October 2016

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

Categories: Numeric Functions