pow

x ^ y

pow(x, y)

Try it yourself:

See also:

pow(): raise a value to a power

pow(x, y) calculates x raised to exponent y. For example, pow(2, 3) is 8 and pow(9, 0.5) is 3 in the real domain.

Exponents and domains

Positive integer powers represent repeated multiplication; negative powers represent reciprocals. Fractional powers may require a positive base for a real answer. Zero to a negative power is undefined.

Related operations

Use sqrt() for square roots, cbrt() for cube roots, exp() for e raised to a power, and log() for inverse exponent reasoning. abs() helps inspect magnitude.

Precision

Large exponents can overflow and very small negative exponents can underflow. Keep exact forms when possible.

All functions