Calculates the natural logarithm (the base-e logarithm) of a number.
log()
expects the n
parameter to be a value greater than 0 because the natural logarithm is defined that way.
Examples
Syntax
log(n)
Parameters
n
Number:
number greater than 0.
Returns
Number: natural logarithm of n.
Notice any errors or typos? Please let us know. Please feel free to edit src/math/calculation.js and open a pull request!