Computing ex Summary
Math. exp (x)
Reference
X
A value or expression used as an index.
Return Value
The x power of e. Here, the base number of the natural logarithm of the e-generation table is approximately 2.71828.
The exp () syntax is as follows:
Copy codeThe Code is as follows: Math. exp (x );
Math. exp () Example:Copy codeThe Code is as follows: <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>