^ ( x y -- x^y )
Factor handbook » The language » Numbers » Mathematical functions » Powers and logarithms

Prev:logn ( x n -- y )
Next:e^ ( x -- e^x )


Vocabulary
math.functions

Inputs
xa number
ya number


Outputs
x^ya number


Word description
Raises x to the power of y. If y is an integer the answer is computed exactly, otherwise a floating point approximation is used.

Errors
Throws an error if x and y are both integer 0.

Definition