EXPT INDEX

EXPT _ _ _ _ _ _ _ _ _ _ _ _ operator

The expt operator is both an infix and prefix binary exponentiation operator. It is identical to ^ or **.

syntax:

expt(<expression>,<expression>) or <expression> expt <expression>

examples:


a expt b; 

   B
  A  


expt(a,b); 

   B
  A  


(x+y) expt 4; 

   4      3        2  2        3    4
  X  + 4*X *Y + 6*X *Y  + 4*X*Y  + Y

Scalar expressions may be raised to fractional and floating-point powers. Square matrix expressions may be raised to positive powers, and also to negative powers if non-singular.

exptis left associative. In other words, a expt b expt c is equivalent to a expt (b*c), not a expt (b expt c), which would be right associative.