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
1
vote
0 answers

The single differential equation of Maxwell

Taken from Wikipedia: [...] Ludwik Silberstein, who used a potential function of one quaternion variable to express Maxwell's equations in a single differential equation. What's the equation here?
John
  • 203
1
vote
1 answer

What are some numbers that are can be factored by Hurwitz primes but not Gaussian primes?

Since gaussian primes can factor conventional prime numbers like 5, I was wondering about the same question but for quaternions.
1
vote
0 answers

Need more context from this wikipedia statement about quaternion multiplication

Here in the wikipedia article on quaternions, the following is written: In general, let p and q be quaternions and write $${\displaystyle p=p_{\text{s}}+p_{\text{v}},}$$$$ {\displaystyle q=q_{\text{s}}+q_{\text{v}},}$$ where $p_\text{s}$ and…
anonymous
  • 363
1
vote
3 answers

What is $i^j$ for quaternions?

Given complex numbers, we can calculate e.g. $i^i$. Given quaternions, how can we calculate something like $i^j$? Wolfram Mathematica choked on that and googling did not produce any useful results. My guess is that this could be something ill…
1
vote
2 answers

Is a "symmetric" definition of quaternions possible?

$\def\qi{\mathbf{i}} \def\qj{\mathbf{j}} \def\qk{\mathbf{k}} \def\qr{\mathbf{r}} $A quaternion $a+ b\qi + c\qj +d\qk$ and the defining equation $\qi^2 = \qj^2 = \qk^2 = \qi\qj\qk = -1$ are obviously visually non-symmetric in their treatment of the…
Harald
  • 611
1
vote
0 answers

Mirroring Quaternions

For testing my quaternion averaging algorithm I would like to setup a function that generates an amount of random quaternions where the mean is known. Feeding these quaternions to my function should lead then to the same result as expected by the…
elyptikus
  • 121
1
vote
2 answers

distinguish the real part from the imaginary part of a quaternion

Usually, there are two representations of a quaternion, say $\mathbf q = q_0+q_1 \mathbf i+q_2 \mathbf j+q_3 \mathbf k$ ,alternatively $\mathbf q = q_x \mathbf i+q_y \mathbf j+q_z \mathbf k + q_z$. Now, provide a quaternion of the form: $$[-0.5739…
Finley
  • 1,133
1
vote
1 answer

Rotate a Vector by Quaternion

I'm trying how to work out how to Rotate a Vertex using Quaternions, using a scientific calculator, or on paper. Exam preparation. My lecturer has given us this; Quaternion = (-0.5, 0, -0.7071067, 0.5) Vertex = (23, 10, 18) The way it's been…
1
vote
0 answers

Vector part of $q^* v r$, what does it mean?

It's not clear why the quaternions are closed under addition. All of the constructions I've seen make it clear why they're closed under multiplication, but not addition. Anyway, consider the following sandwich product $$\begin{aligned} (q + r)^*v(q…
wlad
  • 8,185
1
vote
0 answers

Further than the Sedenions?

So after the quaternions came to my knowledge, I wonder if you could go any further with the complexity. Turns out you can with the octonions(8D numbers) and sedenions(16D numbers). But are there 32D numbers, 64D numbers, etc.?
1
vote
2 answers

A bit confused on Quaternion

Sorry for noobish question. I am trying to make use of quaternion in my work. I get input which has 2 parts: Corners of a square polygon, and a quaternion which encodes rotation of this polygon in 3D space. I read about Quaternion, and understand…
Mapper
  • 13
1
vote
1 answer

Is my Quaternion multiplication correct?

I'm trying to multiply 2 Quaternion equations but I'm not sure if I'm multiplying them correctly. Here are the 2 equations: $_1 = 2 − + + 3$ $_2 = −1 + + 4 − 2k$ and here is how I've multiplied these 2 equations: $$q_1q_2 = ((2)(-1) - (-1)(1) -…
1
vote
1 answer

How many different quaternions $q$ are in a satisfying equation $q^2 = 1$?

In my university I started learning quaternions and don't quite understand them. Could I, please, get some help ?
1
vote
1 answer

What does a quaternion offer extra in a sensor?

I am working my way through the datasheet of a electronic sensor. This one has a build-in processor to do the 'orientation' math. I see that all the sensor data (Acceleration, Magnetometer, Gyroscope, Heading, Roll, etc.) is in three dimensions x,y…
Oldfart
  • 113
1
vote
0 answers

Polynomial fit of quaternions

Imagine that I have a sequence of object poses over time. Each pose is represented by: t,x,y,z,q0,q1,q2,q3 Where x,y,z is the center of said object, and q0,q1,q2,q3 is the orientation given by a quaternion rotation. The trajectory of such body is…