Power
represents
a
raised to the power ofb
.
Note: Power
has the Listable
attribute and Power(x,y,z)
is grouped as x^(y^z)
You can’t do matrix calculations with the ^operator
:
is computed as:
Use Inverse({{2,1},{1,1}})
or MatrixPower({{2,1},{1,1}},2)
to calculate matrix inverses and powers.
Don’t confuse the ^
operator with the ^^
operator, which can be used for integer number bases other than 10
.
Here’s an example for a hexadecimal number:
See
Examples
Use a decimal point to force numeric evaluation:
Power
has default value 1
for its second argument:
Power
can be used with complex numbers:
Infinite expression 0^(negative number)
Indeterminate expression 0 ^ (complex number) encountered.
Indeterminate expression 0 ^ 0 encountered.
Related terms
Implementation status
- ✅ - full supported