NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
float log ( float  x)
inline

Compute natural logarithm.

Computes the natural logarithm of x. The natural logarithm is the base-e logarithm, the inverse of the natural exponential function (exp). For base-10 logarithms, a specific function log10() exists.

See Also
log10(), exp()
Parameters
xFloating point value.
Returns
Natural logarithm of x.
Warning
This function requires the enhanced NBC/NXC firmware.
Examples:
ex_log.nxc.