mpwr NB. square matrix integer power
4 : 'x mp^:y =i.#x'"2 0
   II NB. matrix representing 0j1
0 _1
1  0
   II mpwr 2  NB. produces matrix representing _1j0
_1  0
 0 _1

Wouldn't it be nice if ^"2 0 did what mpwr does, for real exponents as well, 
and square matrix left arguments?  (Could get hairy for a general square 
matrix.)

Happy New Year!

--Kip Murray

Sent from my iPad
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to