Rev Language Reference


power - power

The function raises any real number to a power.

Usage

power(Real base, Real exponent)

Arguments

base : Real (pass by const reference)
The base.
exponent : Real (pass by const reference)
The exponent.

Return Type

Details

This function accepts two arguments: one real number (the base) and a second real number (the exponenent).

Example

# Raise 2 to the 3rd power
    x<-2
    power(x, 3)

See Also