Math.exp

Returns E^x^, where x is the argument, and E is Euler's constant, the base of the natural logarithms.

Method of Math
Static

Syntax

exp( x )

Parameters

Parameter Description
x A number

Description

Because exp is a static method of Math, you always use it as Math.exp(), rather than as a method of a Math object you created.

Examples

The following function returns the exponential value of the variable x:

If you pass getExp the value 1, it returns 2.718281828459045.

See also

Math.E, Math.log, Math.pow

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.