I see. Thanks, Raul.
And thanks Kip for this insight. Now I have
qtomtx =: j./"1 @: (,:"2 (_2]\_1 1 1 _1) *"2 |."2) @: (_2&(]\)"1) :. mtxtoq
mtxtoq =: ,"2@:+.@:({."2) :. qtomtx
and all quaternion work can be done with something like
qprod =. mp&.qtomtx
Henry Rich
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Raul Miller
> Sent: Friday, April 18, 2008 11:58 PM
> To: Programming forum
> Subject: Re: [Jprogramming] Quaternions
>
> On Fri, Apr 18, 2008 at 9:37 PM, Henry Rich
> <[EMAIL PROTECTED]> wrote:
> > I don't get it. If a and b are length-2 lists,
>
> For example:
> (1j2,3j4),:(-+3j4),+1j2
>
> --
> Raul
> ----------------------------------------------------------------------
> For information about J forums see
> http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm