加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 资源网站 > 资源 > 正文

JS数学函数Exp使用说明

发布时间:2020-12-14 23:32:10 所属栏目:资源 来源:网络整理
导读:计算ex摘要 Math.exp(x) 参考 x 数值或表达式,被用作指数。 返回值 ex,即e的x次幂。这里e代表自然对数的底数,其近似为2.71828。 exp()语法如下: 复制代码 代码如下: Math.exp(x) ; Math.exp()范例: 复制代码 代码如下: script language='JavaScript' ty

计算ex摘要

Math.exp(x)
参考
x
数值或表达式,被用作指数。

返回值

ex,即e的x次幂。这里e代表自然对数的底数,其近似为2.71828。

exp()语法如下:

复制代码 代码如下:
Math.exp(x) ;

Math.exp()范例:
复制代码 代码如下:

<script language='JavaScript' type='text/JavaScript'>
<!--
document.write(Math.exp(2)); // output is 7.38905609893065
document.write("<br>");
document.write(Math.exp(1)); // output is 2.718281828459045
document.write("<br>");
document.write(Math.exp(-2)); // output is 0.1353352832366127
document.write("<br>");
document.write(Math.exp(.25)); // output is 1.2840254166877414
document.write("<br>");
document.write(Math.exp(-0.46)); // output is 0.631283645506926
//-->
</script>

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读