Difference between revisions of "SHIP:Sail:log1p"

From Serious Documentation
Jump to: navigation, search
(Created page with "__NOTOC__ {{SailFuncTableStart|}}<onlyinclude> |{{SailFunc|log1p}}||{{DataType|Float}}||style="text-align:center;"|v5.1.0||Return the natural log of a number + 1{{v5}}</onlyin...")
 
Line 40: Line 40:
 
|<code>{{SailFunc|log1p}}(100);</code> || 4.6151204... ||
 
|<code>{{SailFunc|log1p}}(100);</code> || 4.6151204... ||
 
|}
 
|}
 +
 +
[[Categories: Numeric Functions]]

Revision as of 14:39, 4 October 2016

Function Returns Introduced Description
log1p Float v5.1.0 Return the natural log of a number + 1Badge SHIPv5.gif

See Also:

Prototype

Float log1p(Float n);

Parameters/Return Value

Parameter Data Type Description
n Float the number to take the natural log of
Return Float the result of log (n+1), a.k.a. ln (n+1)

Detailed Description

The log() function returns the base e log of a number + 1.

Examples

Example Result Notes
log1p(10); 2.397895...
log1p(5); 1.791759...
log1p(100); 4.6151204...

Categories: Numeric Functions