Quaternion type: Difference between revisions

Content added Content deleted
Line 7,054: Line 7,054:
|
|
'''QMULT''' ''( [Q1] [Q2] -- [Q1 x Q2] )''
'''QMULT''' ''( [Q1] [Q2] -- [Q1 x Q2] )''
convert the 2 quaternions into 4 pairs of complex numbers
convert the 2 quaternions into 2 pairs of complex numbers
and store them locally
and store them locally
(a,b)(c,d) = (ac - conj(d).b, // (a,b) and (c,d) are pairs
(a,b)(c,d) = (ac - conj(d).b, // (a,b) and (c,d) are pairs