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

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


Vocabulary
math.functions

Inputs and outputs
xa number
ya number
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