计算指数表达式,例如 23。
例如,pow(2, 3)
计算表达式 2 × 2 × 2。 pow(2, -3)
计算 1 ÷ (2 × 2 × 2)。
示例
语法
pow(n, e)
参数
n
数字:
指数表达式的底数。
e
数字:
用来对底数进行乘方的指数。
返回值
数字: n 的 e 次方。
This page is generated from the comments in src/math/calculation.js . Please feel free to edit it and submit a pull request!