
语法
Math.exp(X);
下面是参数的详细信息:
X:一个数字。
返回值:
返回变量x的数值。
实例uff1a
javascript数学方法()方法
VaR值= math.exp(1);
document.write(第一测试值:+价值);
VaR值= math.exp(30);
document.write(第二测试值:+价值);
VaR值= Math.exp(1);
document.write(第三个测试值:+价值);
VaR值= math.exp(。5);
document.write(第四个测试值:+价值);
这将产生以下结果:
第一个测试值:2.718281828459045
第二次测试值:10686474581524.462
第三测试值:0.3678794411714423
第四测试值:1.6487212707001282