Math.exp

値の累乗を得る

構文

Math.exp(x)

引数

x=数値

例文

<html>
<head>
<title>Math.exp</title>
</head>

<body>

<!--値の累乗を得るのサンプル-->
<script type="text/javascript">
document.write('1の累乗は'+Math.exp(1)+"<br>");
document.write('-1の累乗は'+Math.exp(-1)+"<br>");
document.write('5の累乗は'+Math.exp(5)+"<br>");
document.write('10の累乗は'+Math.exp(10)+"<br>");
</script>

</body>
</html>

関連記事

スポンサーリンク

<KBD> キーボード入力される文字であることを示す

ホームページ製作・web系アプリ系の製作案件募集中です。

上に戻る