quaternions
- To: mathgroup at yoda.physics.unc.edu
- Subject: quaternions
- From: Jack K. Cohen <jkc at dix.mines.colorado.edu>
- Date: Thu, 8 Oct 92 14:02:30 -0600
Has anyone implemented quaternions? I have an ugly implementation using lists: p = {p0,p1,p2,p3}, but would like something better than: p = {p0,p1,p2,p3}; q = {q0,q1,q2,q3}; p ~qTimes~ q - q ~qTimes~ p //Simplify {0, 2 (-(p3 q2) + p2 q3), 2 (p3 q1 - p1 q3), 2 (-(p2 q1) + p1 q2)}