计算一个数的自然对数(以 e 为底的对数)。
log()
函数期望参数 n
的值大于 0,因为自然对数是这样定义的。
示例
语法
log(n)
参数
n
数字:
大于 0 的数。
返回值
数字: n 的自然对数。
This page is generated from the comments in src/math/calculation.js . Please feel free to edit it and submit a pull request!