quaternions

Why am I getting two different answers with quaternion-vector multiplication

Why am I getting two different answers with quaternion-vector multiplication Question: I am trying to multiply a quaternion with a vector following the formula q * v * q_conjugate(q) I found in this thread. When I run the following code in Python, I get an output that looks correct. However, when I run the code …

Total answers: 1

Creating uniform random quaternion and multiplication of two quaternions

Creating uniform random quaternion and multiplication of two quaternions Question: I have a python (NumPy) function which creates a uniform random quaternion. I would like to get two quaternion multiplication as 2-dimensional returned array from the same or an another function. The formula of quaternion multiplication in my recent case is Q1*Q2 and Q2*Q1. Here, …

Total answers: 5