Math.exp()
|
|
Syntax |
math.exp(num) |
Description |
calculate an exponent where the base is Euler's constant (the base of the natural logarithms). |
|
<html> <body> <script language="JavaScript"> <!-- function doMath(){ var inputNum=document.form1.input.value; var result = Math.exp(inputNum); document.form1.answer.value = result; } --> </script> <form name=form1> Enter First Number: <input type="text" name="input" size=10> <input type="button" value="Calculate" onClick='doMath()'> <br> The exponent is: <input type="text" name="answer" size=10> </form> </body> </html>
|
|
|
HTML code for linking to this page:
|