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

How to populate C values for quaternion

I am trying to work out the appropriate tilt calculations for a 3 axis accelerometer, I have tried many formulas using atan or atan2. The obvious issue with atan is I only get values -90/+90. With atan2 I can get -180/+180 but when pitch or roll…
0
votes
2 answers

How can ijk be equal to -1 if each is a square root?

I'm learning about Quaternions for the first time and ran into something I can't quite understand. Supposedly i^2 = j^2 = k^2 = ijk = -1; but if i, j, and k are all square roots of -1, then shouldn't the product of all three be -1 times its square…
0
votes
2 answers

How to calculate quaternions from principal axes of an ellipsoid?

I am working a project that involves calculating quaternions of ellipsoids providing that I already know the unit vectors of their principal axes. The reason for this is the program I am using to work with these ellipsoids require quaternions. The…
0
votes
2 answers

How do I solve Quaternion Equations?

I'm trying to calculate the sum of these 2 equations but I'm really having trouble. Here are the 2 quaternions that I'm trying to find the sum of: $q_1 = 2 − i + j + 3k$, and $q_2 = −1 + i + 4j − 2k$. I'm aware that to get the sum of two…
0
votes
0 answers

Resources for Quaternion Equations?

I have 2 Quaternion equations and I'm trying to find material on how to solve them: 1 = 2 − + + 3 2 = −1 + + 4 − 2 I need to find the difference of the 2 sums and the Quaternion Product. I've literally searched everywhere and can't find decent…
0
votes
0 answers

Dual quaternions displacement

can someone help show me an example on how to use quaternion slerp to displace the position $$64,0,0$$ in the Z direction by 167 and rotate 10 degrees? Ive seen many many papers that show $$[cos (\frac{Θ}{2}), n sin (\frac{Θ}{2})][0,0,0,0] *…
0
votes
1 answer

Prove the polynomial ring and algebra of quaternions isomorphisms

I saw an answer on a question Prove the polynomial ring and field isomorphisms, but can somebody explain why with $x=j$ and $ix=k$, the elements $i,j,k$ satisfy all the defining relations they are supposed to for the quaternion algebra…
0
votes
1 answer

Distance between quaternion with opposite signs

I want to compute the distance between two unit quaternions to know if the angle between them is too big, because I don't want to apply the rotation if the angle between the quaternions is higher than $\pi$. I have a problem with quaternion of…
mlel
  • 1
0
votes
1 answer

Choose between quaternion ambiguity with respect to a reference quaternion

I'm here to ask for a simple question about unit quaternions. I have a quaternion, say $q_1$. Now, I would like to choose between $q_2$ and $-q_2$ (that represent the same rotation), by choosing the one that has the "smallest distance" to $q_1$. I…
Neostek
  • 71
0
votes
2 answers

Trying to prove Quaternion function, looking for advice

I'm trying to solve the Quaternion function: $i^2 = j^2 =k^2 =ijk=-1$ I'm trying to solve it by myself since I found it quite interesting even though its far above and beyond Advanced Level syllabus, does anyone here have any advice on how to go…
0
votes
1 answer

Does $i^2* j^2 = (i*j)^2$ in $\mathbb H$ ? (Proving $ij = k$ from $i^2 = j^2 = k^2 = -1$)

I was trying to prove $ij = k$ from $i^2 = j^2 = k^2 = -1$ by doing: (1) $i^2 = j^2$ (2) $\Rightarrow i^2 j^2 = 1$ (multiplying both sides with $j^2$ ($j^4 = 1$)) (3) $\Rightarrow i^2 j^2 = k^4$ (4) $\Rightarrow (ij)^2 = k^4$ (5) $\Rightarrow ij =…
0
votes
0 answers

Quaternions question

Got a question about Quaternions. I can kind of get that for $q=a+b{\bf i}+c{\bf j}+d{\bf k}$, $\bf i,j,k$ are square roots of -1, what I don't get is why ${\bf ijk} = -1$ ? Any enlightenments? :)
0
votes
1 answer

Connectness of quaternion

How can I prove that the set of all non-zero quaternions is connected? I'm not sure how we can have subsets of quaternions, as for real number, we can just use intervals, but we can't do that for quaternions.
ghc1997
  • 41
0
votes
1 answer

Expression transformation using quaternion

Sorry for boring you. I am haunted by a problem of quaternion. Here's my question: First, an initial triad is denoted $\textbf{e}_1^0$, $\textbf{e}_2^0$ and $\textbf{e}_3^0$ in a Cartesian coordinate system. I would like to formulate the…
0
votes
2 answers

Quaternion - express vector from difference

I have this: $$ x = q_1 \cdot A \cdot \overline{q_1} - q_2 \cdot A \cdot \overline{q_2} $$ $\cdot$ is a standard quaternion multiplication. Is it somehow possible to express $A$ from it?