The integration of angular velocity

Michael Boyle
4/27/2016
46 citations
gr-qc

Official code: moble/quaternion (659 stars, Python, MIT, last commit 2025-12-15). 2 more implementations below.

Abstract

A common problem in physics and engineering is determination of the orientation of an object given its angular velocity. When the direction of the angular velocity changes in time, this is a nontrivial problem involving coupled differential equations.

Show full abstract

Several possible approaches are examined, along with various improvements over previous efforts. These are then evaluated numerically by comparison to a complicated but analytically known rotation that is motivated by the important astrophysical problem of precessing black-hole binaries. It is shown that a straightforward solution directly using quaternions is most efficient and accurate, and that the norm of the quaternion is irrelevant. Integration of the generator of the rotation can also be made roughly as efficient as integration of the rotation. Both methods will typically be twice as efficient as naive vector- or matrix-based methods. Implementation by means of standard general-purpose numerical integrators is stable and efficient, so that such problems can be readily solved as part of a larger system of differential equations. Possible generalization to integration in other Lie groups is also discussed.

View on arXivView PDF

Code Implementations(3)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
moble/quaternionOfficial659PythonMIT2025-12-15
moble/quaternionicOfficial96PythonMIT2026-09-07
moble/Quaternionic.jlOfficial29JuliaMIT2026-10-13
moble/quaternionOfficial100%
MIT

Add built-in support for quaternions to numpy

65994Python, CDec 11, 201411 months agoMIT
mathnumpyphysicspythonquaternion+1 more
moble/quaternionicOfficial100%
MIT

Interpret numpy arrays as quaternionic arrays with numba acceleration

9611PythonAug 11, 20202 months agoMIT
MIT

Quaternions for Julia

291JuliaJun 9, 20211 months agoMIT

Similar Papers

Cite this paper

@article{boyle2016integration,
  title  = {The integration of angular velocity},
  author = {Michael Boyle},
  year   = {2016},
  eprint = {1604.08139},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1604.08139}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1604.08139.svg)](https://codeofpaper.com/paper/1604.08139)

Discussion