exp2

Function exp2 

Source
pub fn exp2(args: &[Value]) -> Result<Value, RuntimeError>
Expand description

2的幂运算

§功能

计算 2 的 x 次幂。

§参数

  • x: Number - 指数

§返回值

Number - 2^x

§公式

exp2(x) = 2^x

§示例

Set a Exp2(3)           # 8.0
Set b Exp2(10)          # 1024.0
Set c Exp2(-1)          # 0.5