exp

Function exp 

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

自然指数函数

§功能

计算 e 的 x 次幂。

§参数

  • x: Number - 指数

§返回值

Number - e^x

§公式

exp(x) = e^x

§示例

Set a Exp(0)            # 1.0
Set b Exp(1)            # 2.718281828... (e)
Set c Exp(2)            # 7.389056... (e²)