SHIP:Sail:log1p

From Serious Documentation
Jump to: navigation, search
Function Returns Introduced Description
log1p Float v5.1.0 Return the natural log of a number + 1

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