Quaternions and RotationsIn "Best solution to an overdetermined system," TMJ 6(3): 20, a least
squares method was used to compute numerically the quaternion through the equivalence of P. Chesson (chessonp@aol.com) pointed out the
quaternions can be determined directly. Since must be 1. This condition and the equation We can now use the reduced polynomials are and, since the (arbitrary) quaternion is For example, the numerical rotation matrix with elements corresponds to the quaternion The positive square root for |