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...")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
{{SailFuncTableStart|}}<onlyinclude>
 
{{SailFuncTableStart|}}<onlyinclude>
|{{SailFunc|expm1}}||{{DataType|Float}}||style="text-align:center;"|v5.1.0||Return e to the given power minus 1{{v5}}</onlyinclude>
+
|{{SailFunc|expm1}}||{{DataType|Float}}||style="text-align:center;"|v5.1.0||Return e to the given power minus 1</onlyinclude>
 
|}
 
|}
 
== See Also: ==
 
== See Also: ==
Line 40: Line 40:
 
|<code>{{SailFunc|expm1}}(-1);</code> || 0.367879... ||
 
|<code>{{SailFunc|expm1}}(-1);</code> || 0.367879... ||
 
|}
 
|}
 +
 +
[[Category:Numeric Functions]]

Latest revision as of 17:18, 13 October 2016

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