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
0
votes
2 answers

How to find angle difference in quatenions?

How does one find the angle difference between two quaternions. There was an answer to this post which says the angle difference between $x$ and $y$ is $z=x\ast \mathrm{conj}(y)$. Is that the multiplication operator or a dot product? Thanks
sat
  • 9
0
votes
1 answer

Relative rotation between quaternions

Say I have a quaternion q which describes how to get from frame 0 to frame 1, and a quaternion r which describes how to get from frame 0 to frame 2. To get the "quaternion difference" between q and r, I do $$ q_{d} = q^{-1} r $$ This is however in…
0
votes
0 answers

Converting from Manhattan Directions to Quaternion Rotations.

I have 3D vectors on the Unit Cube (from (-1,-1,-1) to (1,1,1), with all vectors v satisfying: cmax(abs(v)) == 1). I want to get the opposite vector from one to another. Example 1: A=(1,0, 0), B=(0,1, 0) ==> C=(-1,0,0) - the opposite of A along…
0
votes
1 answer

Is the product of two quaternions guaranteed to stay in the upper hemisphere if the two quaternions reside in the upper hemisphere?

My question is in the title. Let's say there are two quaternions $\mathbf q_1$ and $\mathbf q_2$, and both of them reside in the upper hemisphere of $\mathbb S^3$. Is the result of their multiplication $\mathbf q_3 = \mathbf q_1 * \mathbf q_2$ also…
jordi
  • 279
0
votes
0 answers

Squared multiplication of Quaternion

I am reading a book on the math behind game engine. At the end of the chapter that talks about quaternions they are some exercises. I need to prove that $||q_1q_2||^2 = ||q_1||^2||q_2||^2$ It should be farely simple but I'm stuck on probably the…
rXp
  • 113
0
votes
0 answers

Dual quaternion norm expression from Skinning with Dual Quaternions Paper.

I am familarizing with a common skinning techinque used in animation, the Dual Quaternion Skinning. Since the original paper is not long I am going through the math myself. There's equation 3 which I cannot manage to derive. $$ \left\lVert \hat{q}…
user8469759
  • 5,285
0
votes
0 answers

Is this a discovery or something known? "You find any Integer solution for pythagorean quadruples, pythagorean quintuple. using quaternions √

If you take a quaternion number lets call it Q (Q=a+bi+cj)) Q² definitely generate a pythagorean quadruple and Q=a+bi+cj+dk will definitely generate pythagorean quintuple ex: Q=1+1i+1j+k, Q² = (-2)+2i+2j+2k, and 2²+2²+2²+2²=16 and 16 is 4² and this…
0
votes
1 answer

Give product of two quaternions.

Compute the product of the quaternions $(a+ bi +aj)(ai + ck)$ with $a,b,c\in \mathbb Z.$ But, answer shown on Wolfram Alpha is different?
jiten
  • 4,524
0
votes
1 answer

If $q \in S^3$, we can write $q = \cos \theta + I \sin \theta$ with $I \in S^2$.

Please read whacka's answer to this post since my question is related to the answer. I would like to solve the problem: If $q \in S^3$, write $q = \cos \theta + I \sin \theta$ with $I \in S^2$. Prove that $\rho (q) \in SO(3)$ is the rotation through…
john
  • 1,268
0
votes
1 answer

Multiplication of a unit quaternion and a vector in $\mathbb{R}^3$

As we know, a $q$ in the group of unit quaternions can be represented as a $2 \times 2$ matrix. So, if $q = a+ib+jc+kd$, then its matrix representation would be $\begin{bmatrix} a+ib & c+id \\ -c +id & a-ib \\ \end{bmatrix}$. But, I don't see how…
john
  • 1,268
0
votes
0 answers

How to map from one coordinate/rotation system to another?

I'm using an Augmented Reality SDK to define a polygon in 3d space. What the SDK gives me back is a list of poses (3 translation coordinates, and a rotation quaternion), say P0, P1, P2, P3. Each one with a different translation and rotation. I can…
Cristian
  • 101
0
votes
0 answers

Quaternion finite difference and derivative

Good time of the day. In my research (I'm an electrical engineer) I'm doing a kind of quaternion analysis for a control system design. So, in my particular case, I just have a "vector part" of a voltage quaternion associated with the grid voltage…
0
votes
0 answers

Can I multiply a norm to a quaternion?

Let's say we have 2 quaternions a = 1+3i+5j+7k, b = 3+8i+12j+16k, can I multiply its norm to another quaternion? For example: ||a||(b) Norm of a = $\sqrt{1^2+3^2+5^2+7^2}$ = 9.16515... Should I do it like simple maths? 9.16515(3+8i+12j+16k) =…
ki.c
  • 1
  • 1
0
votes
0 answers

What's the name of the space that spinors and quaternions live in?

I know the properties and most things about, but the Space they live I do not know the name, I find it strange not to have a name just hear that are kind of such a space, in some places until I heard that the space of spinors had the name of…
Ian
  • 1
0
votes
1 answer

Quaternions question .

its given that : A quaternion is an expression of the form : q = $a+b$i$+c$j+$d$k Where $a,b,c,d$ $∈$ ℝ and $i,j,k$ are basic quaternions, satisfying $i^2$ =$j^2$=$k^2$= $ijk$ = -1 It's weird that $ijk = -1$. So $(ijk)*(ijk)$ = $(-1)*(-1) = +1$,…
mark
  • 754