Algorithms for manipulating quaternions in floating-point arithmetic
Authors:
Preprint
Abstract
Quaternions form a set of four global but not unique parameters, which can represent three-dimensional rotations in a non-singular way. They are frequently used in computer graphics, drone and aerospace vehicle control. Floating-point quaternion operations (addition, multiplication , reciprocal, norm) are often implemented "by the book". Although all usual implementations are algebraically equivalent , their numerical behavior can be quite different. For instance, the arithmetic operations on quaternions as well as conversion algorithms to/from rotation matrices are subject to spurious under/overflow (an intermediate calculation underflows or overflows, making the computed final result irrelevant, although the exact result is in the domain of the representable numbers). The goal of this paper is to analyze and then propose workarounds and better accuracy alternatives for such algorithms.Keywords
All Related Versions
This publication has 10 references indexed in Scilit:
- A Survey on the Computation of Quaternions From Rotation MatricesJournal of Mechanisms and Robotics, 2019
- A Complete Framework for Linear Filtering of Bivariate SignalsIEEE Transactions on Signal Processing, 2018
- Integrating Rotations Using Nonunit QuaternionsIEEE Robotics and Automation Letters, 2018
- Further analysis of Kahan’s algorithm for the accurate computation of $2\times 2$ determinantsMathematics of Computation, 2013
- Accurate Sum and Dot ProductSIAM Journal on Scientific Computing, 2005
- Efficient scaling for complex divisionACM Transactions on Mathematical Software, 2004
- Scalar fused multiply-add instructions produce floating-point matrix arithmetic provably accurate to the penultimate digitACM Transactions on Mathematical Software, 2003
- The Representation, Recognition, and Locating of 3-D ObjectsThe International Journal of Robotics Research, 1986
- The quaternion group and modern physicsEuropean Journal of Physics, 1984
- Quasi double-precision in floating point additionBIT Numerical Mathematics, 1965