函数 log10 #
计算一个值的 10 底对数。这与计算 log(x, 10) 相同。
对于矩阵,该函数逐元素求值。
Syntax #
math.log10(x)
Parameters #
| Parameter | Type | Description |
|---|---|---|
x |
number | BigNumber | Complex | Array | Matrix | 要计算对数的值。 |
Returns #
| Type | Description |
|---|---|
| number | BigNumber | Complex | Array | Matrix | 返回 x 的 10 底对数。 |
Throws #
Type | Description —- | ———–
Examples #
math.log10(0.00001) // returns -5
math.log10(10000) // returns 4
math.log(10000) / math.log(10) // returns 4
math.pow(10, 4) // returns 10000