Questions tagged [quaternions]

For questions about the quaternions: a noncommutative four dimensional division algebra over the real numbers. Also for questions about quaternion algebras.

The ring of quaternions is a four dimensional division algebra over the real numbers. They are usually denoted as $\Bbb H$ in honor of the discoverer, William Rowan Hamilton.

The construction of the quaternions was given by Hamilton as follows: take three symbols $\mathrm{i},\mathrm{j},\mathrm{k}$ as imaginary units and define $\mathrm{i}^2=\mathrm{j}^2=\mathrm{k}^2=\mathrm{i}\mathrm{j}\mathrm{k}=-1$. As a result, $\mathrm{i}\mathrm{j}=\mathrm{k}$, and $\mathrm{j}\mathrm{k}=\mathrm{i}$ and $\mathrm{k}\mathrm{i}=\mathrm{j}$. Furthermore, $\mathrm{j}\mathrm{i}=-\mathrm{k}$ and $\mathrm{k}\mathrm{j}=-\mathrm{i}$ and $\mathrm{i}\mathrm{k}=-\mathrm{j}$, so $\mathrm{k}\mathrm{j}\mathrm{i}=1$.

Another construction of the quaternions was given by Carl Friedrich Gauß as follows: take three symbols $\mathrm{i},\mathrm{j},\mathrm{k}$ as imaginary units and define $\mathrm{i}\circ\mathrm{i}=\mathrm{j}\circ\mathrm{j}=\mathrm{k}\circ\mathrm{k}=\mathrm{k} \circ \mathrm{j} \circ \mathrm{i}=-1$. As a result, $\mathrm{i}\circ\mathrm{j}=-\mathrm{k}$, and $\mathrm{j}\circ\mathrm{k}=-\mathrm{i}$ and $\mathrm{k}\circ\mathrm{i}=-\mathrm{j}$. Furthermore, $\mathrm{j}\circ\mathrm{i}=\mathrm{k}$ and $\mathrm{k}\circ\mathrm{j}=\mathrm{i}$ and $\mathrm{i}\circ\mathrm{k}=\mathrm{j}$, so $\mathrm{i}\circ\mathrm{j}\circ\mathrm{k}=1$.

A quaternion is a linear combination and can represented as versor

$q=q_{0} + q_{1} \mathrm{i} + q_{2} \mathrm{j} + q_{3} \mathrm{k} ~ \widehat{=} ~ \left[\begin{matrix} q_{0} \\ q_{1}\\ q_{2}\\ q_{3} \end{matrix}\right]\in \mathbb{R}^{4} $ where $q_{0}, q_{1},q_{2},q_{3}\in \Bbb R$

Multiplication between quaternions is carried out by using the distributive rule and the rules for $\mathrm{i}$, $\mathrm{j}$ and $\mathrm{k}$.

The quaternions turn out to be a noncommutative division ring. In fact, $\Bbb R$ and $\Bbb C$ and $\Bbb H$ are the only associative finite dimensional division rings over $\Bbb R$. They are also the only normed division algebras over $\Bbb R$.

1656 questions
3
votes
1 answer

Quaternions and critically damped spring

I would like to apply critically damped spring smoothing method to smooth movement on the unit sphere to a desired orientation. I have two quaternions, one that represent current orientation and one that represents the target orientation. Somehow…
runnydead
  • 131
3
votes
1 answer

Why is the norm of a Hurwitz Quaternion always a positive integer?

Let $\mathcal{H}$ denote the Hurwitz Quaternion, i.e the subring of the ring of real quaternions that is defined in the following way: $$\mathcal{H} = \{ m_0 \zeta + m_1 i + m_2 j + m_3 k \mid m_i \in \mathbb{Z} \}$$ where $\zeta = \frac{1}{2}(1 +…
3
votes
1 answer

Normalizing a dual quaternion

I'm kind of confused about the normalization of a dual quaternion. From the texts (e.g. Kavan 2008), for a dual quaternion $\hat{q} = a + \varepsilon b $, the norm is defined as $$ ||\hat{q}|| = ||a|| + \varepsilon \frac{a \cdot b}{||a||} $$ I'm…
kekpirat
  • 158
  • 5
3
votes
1 answer

Possible to calculate Yaw,Pitch,Roll from Quaternion without using tangent?

I'm currently working on a project that involves using the Yaw, Pitch and Roll from a given Quaternion to calculate an objects orientation and acceleration. I've searched a lot about how to obtain the YPR from a Quaternion, but they all seem to…
Steven
  • 53
3
votes
2 answers

How to Solve Quaternionic Equations?

I would like to know how to solve general polynomial equations over $\mathbb{H}$. For example, how do I solve something like $x^2 = 20$, $x^2 + 2x = -30$, etc.? I'm able to go as far as saying something like $x = \{h \in \mathbb{H} \mid h^2 = 20\}$,…
3
votes
1 answer

Is there anything like heptonions?

Unit complex numbers can be used to represent roatations in 2D, unit quaternions can be used to represent rotations in 3D. Can there be anything ike heptonions which could represent rotations in 4D or it is proven to be impossible? There are 6…
Hume2
  • 2,264
3
votes
1 answer

Distance between quaternions, ignoring one axis of rotation

Disclaimer: first time using quaternions. I needed to determine the distance between a orientation given by quaternion $q_1$ and a target orientation $q_t$. Both quaternions are normalized. Therefore: $$d = 2(1-q_1 \cdot q_t)$$ This works very well,…
kwantuM
  • 151
3
votes
1 answer

$\mathbf{U}\times(\mathbf{V}\times\mathbf{W})=(\mathbf{U}\cdot\mathbf{W})\mathbf{V}-(\mathbf{U}\cdot\mathbf{V})\mathbf{W}$ Quaternion Proof

Prove the identity $$\mathbf{U}\times(\mathbf{V}\times\mathbf{W})=(\mathbf{U}\cdot\mathbf{W})\mathbf{V}-(\mathbf{U}\cdot\mathbf{V})\mathbf{W}$$ given three vectors $\mathbf{U},\mathbf{V}$ and $\mathbf{W}$ by a quaternion calculus. I am quite unsure…
johnny09
  • 1,535
3
votes
1 answer

3 axis gimbal controller and quaternions

this question has been probably asked in different forms but please bare with me: I'm building a three axis gimbal controller as part of my uni project. Besides the gimbal stabilization on each axis, the pitch and yaw also need to be manually…
3
votes
4 answers

For quaternions, is the natural log the inverse of the exponential function?

That is to ask, is $e^{\ln(q_0)}$ = $\ln(e^{q_0})$?
May Oakes
  • 463
3
votes
1 answer

Showing that a quaternion is pure real

Context: It is easy to see that for $p, v \in \mathbb H = \mathbb R^4$, the usual inner product is given by $\langle p,v\rangle = \mathrm{Re} (\bar p v)$. From this we may conclude that $\langle (p^1, p^2), (v^1, v^2)\rangle = \mathrm {Re} (\bar p^1…
Aaron Maroja
  • 17,571
3
votes
1 answer

Geometric structure of square map for quaternions

The square map $z\mapsto z^2$ from $\mathbb{C}\to\mathbb{C}$ has a straightforward interpretation as a double-cover with a singular point at $0$. More generally $z\mapsto z^n$ is an $n$-fold cover. What is the map $z\mapsto z^2$ from…
3
votes
1 answer

Axes permutations and negations using quaternions

I'm trying to establish conversion between coordinate frames of reference of a phone camera and onboard gyroscope. Because some phones flip Y axis of video, I do not want to limit solution to RHS<->RHS case. Is there a quaternion way to encode a…
Tosha
  • 133
3
votes
2 answers

Unit quaternion multiplied by -1

If all components of a unit quaternion (also known as versor) are multiplied by -1, so it still remains a versor, does the resulting versor is considered equivalent to the original versor?
Tanmay Patil
  • 131
  • 4
3
votes
1 answer

Extract the angle of rotation from a unit quaternion

Sorry for boring you my friends before the spring vacation. I am haunted by a simple problem of how to extract rotation angle from a unit quaternion. Suppose $a$ is a unit quaternion which takes the form of: $$a = \left( \cos \left(\frac{\phi}{2}…
1 2
3
12 13