Rev Language Reference


exp - Exponential of a number

Maps the value of a number x to e^x, where e is the number such that ln(e) = 1.

Usage

exp(Real x)

Arguments

x : Real (pass by const reference)
A number.

Return Type

Example

# checking that ln(e) = 1
x <- exp(1)
ln_of_x <- ln(x)
if (ln_of_ex != 1) {
        print("Problem when computing an exponential value.")
} else {
        print("Correct computation of an exponential value.")
}

See Also