contents   index   previous   next



Math.exp()

syntax:

Math.exp(x)

where:

x - either a number or a numeric expression to be used as an exponent

 

return:

number - an implementation-dependent approximation of the exponential function of the argument.

 

description:

For example returns e raised to the power of the x, where e is the base of the natural logarithms. Returns NaN if x cannot be converted to a number.

 

example:

//The exponent of x is returned 

//in the following function:

function compute_exp(x)

{

   return Math.exp(x)

}

 


Math.floor()