Operators > Algebra Operators > Exponentiation and Matrix Inverse Operator
Exponentiation and Matrix Inverse Operator
Operator
Keyboard Shortcut
^
Operands
x
y
Description
Scalar
Scalar
Returns x raised to the power y.
Vector
Returns a vector of the same size as y, whose ith entry is x raised to the power yi.
Vector
Scalar
Returns a vector of the same size as x, whose ith entry is xi raised to the power y.
Square matrix
0
Returns the identity matrix whose dimensions match those of x.
−1
Returns the inverse of x, if it exists.
Positive
Returns x multiplied by itself y times. y must be an integer or a rational number that is a multiple of 1/60.
Negative
Returns the inverse of x multiplied by itself y times. y must be an integer or a rational number that is a multiple of 1/60.
Additional Information
When the argument x is e, a different, more accurate algorithm is used, which suffers less from roundoff errors in the case of very large or small exponents.
To apply the exponential operator to each element of an array individually, select the expression and insert the vectorize operator.
Was this helpful?