Main Index : Reference :

exp()


Description

Calculates the mathematical constant e raised to a given power (e is approx. 2.718282).

Definition

[float] exp([float,int] x)

Parameters

x is a numeric value.

Return Value

exp() returns e raised to the power x, that is ex. For more information on the use of this function, please refer to a math book.

Example

// Outputs "exp(x) = 7.389056".

var x = 2.0;
var a = exp(x);

println("exp(x) = ",a);

See Also

log(), log10()