国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 語言 > JavaScript > 正文

JS數學函數Exp使用說明

2024-05-06 14:21:29
字體:
來源:轉載
供稿:網友

計算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>

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表

圖片精選

主站蜘蛛池模板: 岳阳市| 寿宁县| 深圳市| 宜兰市| 抚顺市| 自贡市| 夹江县| 泌阳县| 莒南县| 上思县| 托克逊县| 商城县| 桂阳县| 介休市| 西城区| 日喀则市| 成武县| 南川市| 吉安市| 芜湖县| 沙坪坝区| 德安县| 墨玉县| 原平市| 象山县| 友谊县| 理塘县| 博乐市| 洪泽县| 九江县| 鹰潭市| 油尖旺区| 原阳县| 托克托县| 清原| 惠东县| 房山区| 西和县| 调兵山市| 仁化县| 南川市|