Algorithms for Manipulating Quaternions in Floating-Point Arithmetic
Authors:
- 1 June 2020
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 48-55
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 13 references indexed in Scilit:
- Integrating Rotations Using Nonunit QuaternionsIEEE Robotics and Automation Letters, 2018
- Handbook of Floating-Point Arithmetic2018
- 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
- Animating rotation with quaternion curves1985
- The quaternion group and modern physicsEuropean Journal of Physics, 1984
- Quasi double-precision in floating point additionBIT Numerical Mathematics, 1965