<script language="JavaScript"> document.write( Math.exp(1) + "<br />" ); document.write( Math.exp(-1) + "<br />" ); document.write( Math.exp(10) ); </script>
运行该例子,输出:
2.718281828459045 0.000045399929762484854 22026.465794806718
0