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

Fusioning check values in bounds

I am fusioning data from Acc Gyro and Magn and i have the quaternions and they are looking good and accurate in OpenGL. What i want is that the user can define max and min rotation for each axis else a vibration maybe will be happen. Should i…
ddarellis
  • 101
  • 1
0
votes
0 answers

How to get the Quaternion

I'm trying to understand quaternions and how to convert them. So I was tryting but couldn't get the right answer. So my question is below. What is the quaternion of a vector (1,0,0) Rotated 45 degrees around (0,0,1)
terry
  • 53
0
votes
1 answer

Simplifying the first part of the quaternion rotation formula for a matrix.

In the image below, I have the simplified part in green box. Why is there a $2$. How does it simplify from $(q_4^2 - q_1^2-q_2^2-q_3^2)$ to $2q_4^2 - 1$ Here Image here
terry
  • 53
0
votes
1 answer

Complex Number Division definition?

$\frac{(a,b)}{(c,d)} = \left ( \frac{ac + bd}{c^2 + d^2}, \frac{bc - ad}{c^2 + d^2} \right )$ if $(c,d) \ne (0,0)$ I'm dealing with quaternions in my book..complex numbers. how do I derive..or proof (a,b)/(c,d)
terry
  • 71
0
votes
1 answer

Quaternion and rotation about an origin and an arbitrary axis origin help

Greetings All Thanks to James and Chas for helping me get this far btw Chas the language I wrote it in is in matlab. I tried to respond to your post but wasn't able to do it..I guess the gremlins are acting up on my computer. Also since I'm only…
Rick T
  • 457
0
votes
1 answer

Axis Angle to quaternion and quaternion to Axis angle question

Axis Angle to quaternion and quaternion to Axis angle question Greetings All (matlab / octave code) Link to text file in case formatting gets messed up http://db.tt/nVv8Ivj I created two functions one to convert axis angle to quaternion and another…
Rick T
  • 457
0
votes
0 answers

Quaternions and Rotations

I have 2 points in 3d space ,point A= <5,3,6> and B=<8,2,3> I want to rotate "point B" by 30 degree from point A. how do I solve this question using quaternion. Plz, explain the steps....
0
votes
1 answer

Why is the square of quaternions not half of all axes angles expressed by this quaternion?

I want to devide a rotation, which is expressed as a quaternion. So I am doing it with Quaternion^POWER, where power is lower than 0. See my question before: here If I calculate following example with angles in degree for the axes x,y,z =…
chris LB
  • 183
0
votes
0 answers

Why Quaternion rotations are smoother than Euler rotation?

I have stumble upon this phrase several times but can't fully understand what it refers to. "Quaternion rotations are smoother than Euler rotations." I understand that the gimbal lock problem with Euler gets fixed with Quaternions. But why the…
0
votes
1 answer

Quaternion - trigonometric form - $q=\cos \theta +u \sin \theta$ Components for $u$?

It is proven that a quaternion has the following trigonometric form: $$q=\cos \theta +u \sin \theta.$$ My question is: Which are the components of the $u$? Thanks!
Iuli
  • 6,790
0
votes
1 answer

Quaternions vs Axis + angle

I have been trying to find the difference between the two but to no luck minus this: The primary diff erence between the two representations is that a quaternion’s axis of rotation is scaled by the sine of the half angle of rotation, and…
Chris Condy
  • 111
  • 2
0
votes
2 answers

Quaternion relation proofs (e.g.: $ik=-j$)

How do you prove that these relations are correct $(ij = k, jk = i, \ldots)$? I tried to prove some of them, and I could, but for example: ik = -j -j = -1 * j = (ijk) * j = i*(j^2)*k = -1 (ik) = -ik so -j = -ik... which is wrong, ** in which…
Snowman
  • 121
0
votes
1 answer

Question regarding practical SLERP

We are suppose to compute the quaternion which performs 1/5 of the rotation of this quaternion: [ 0.965 (0.149 -0.149 0.149)] The answer provided is shown as below: Picture of the answer I'm stuck at the second last row of the ans. How do you…
p0larBoy
0
votes
1 answer

Quaternion Negative Unity

I'm reading Hamilton's Paper on Quaternions. Found here http://www.emis.de/classics/Hamilton/OnQuat.pdf. On page 5, the first statement of 7, says that there are only two different square roots of negative unity. I tried googling and I can't find…
Gakho
  • 5
0
votes
1 answer

Question about Hamilton's Quaternion Paper

So I was reading Hamilton's paper on quaternions. http://www.emis.de/classics/Hamilton/OnQuat.pdf. On page 2, I'm having trouble following how QQ' and equations A,B,C lead to equation D. My main question is in the original expression for QQ', we…
Gakho
  • 5
1 2 3
12
13