How to use exp in JavaScript
In this article, I will explain use of exp() method in JavaScript.
JavaScript exp() Method
exp() method of math object returns the value of Ex, where
Syntax
Example
In the following example show to exp() method returns the exponential value of numbers.
<html>
<head>
<title>JavaScript Math exp() Method</title>
</head>
<body>
<h3 style="color:Blue">JavaScript exp() Method Example</h3>
<script type="text/javascript">
var a = Math.exp(5);
document.write("First Value of exp : " + a);
var b = Math.exp(60);
document.write("<br />Second Value of exp : " + b);
var c = Math.exp(-5);
document.write("<br />Third Value of exp : " + c);
var d = Math.exp(.9);
document.write("<br />Fourth Value of exp : " + d);
</script>
</body>
</html>
|
Output

You may also want to read these related articles here
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here