Function Repository Resource:

QuaternionFunction

Source Notebook

A function containing definitions for various quaternion functions

Contributed by: Wolfram Staff

ResourceFunction["QuaternionFunction"]["function"]

returns the quaternion function with the name "function".

Details and Options

ResourceFunction["QuaternionFunction"] returns modularized functions from the Quaternions package.
ResourceFunction["QuaternionFunction"] is meant to be an interface used by other resource functions.

Examples

Basic Examples (3) 

Do arithmetic with quaternions:

In[1]:=
q1 = ResourceFunction["QuaternionFunction"]["Quaternion"][2, 0, -6, 0]
Out[1]=
In[2]:=
q2 = ResourceFunction["QuaternionFunction"]["Quaternion"][1, 3, -2, 0]
Out[2]=
In[3]:=
3 + 2 I + q1 - 3 q2
Out[3]=

Use a function from the Quaternions Package:

In[4]:=
q1 = ResourceFunction["QuaternionFunction"]["Quaternion"][2, 0, -6, 0]
In[5]:=
ResourceFunction["QuaternionFunction"]["FromQuaternion"][q1]
Out[5]=

Use a different function from the Quaternions Package:

In[6]:=
q2 = ResourceFunction["QuaternionFunction"]["Quaternion"][1, 3, -2, 0]
In[7]:=
ResourceFunction["QuaternionFunction"]["AdjustedSignIJK"][q2]
Out[7]=

Version History

  • 1.0.0 – 10 July 2019

License Information