If I have the following instructions:
How will it be the output/how will it appears in Mathematica? something like this:
I can't recognize the output in mathematica... How can I do to appear the matrix? because it doesn't appear...
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.
according to http://en.wikipedia.org/wiki/Quaternion
is this what you want?
Acknowleding the comments re: 'homework', I post this just to illustrate an alternative matrix representation of quaternions to the Wouter.
Comparison of representations Wouter and qf:
The unit quaternion representations:
Confirmation of the multiplicative properties:
Rotation using this matrix representation:
Trivial test cases: