[Jprogramming] making rotation matrices

J. Patrick Harrington jph at astro.umd.edu
Wed Jul 13 04:42:26 UTC 2016


   That was even worse. All the LF's or CR's being removed.
I have been loading a file -- here's one last try, typed by hand :-(
-------------------------------------------------------------
qRot=: dyad define
'u w'=. y
u=. u*sin-:w
t=. +: u cross x
x+ (t*cos-:w)+ u cross t
)

L=: +/"1 &. (*:"_)
norm=: ] % L
cross=: (([: 1&|."1 [)* [: 2&|."1 ])- (([: 1&|."1 [)* [: 2&|."1 ])~
--------------------------------------------------------------------



More information about the Programming mailing list