GTQuaternionQ

GTQuaternionQ[q]
gives True if q is a quaternion, and gives False otherwise.

DetailsDetails

  • In GTPack quaternions are defined as a list of the form {a,{i,j,k}}.
  • See: W. Hergert, M. Geilhufe, Group Theory in State Physics and Photonics. Problem Solving with Mathematica, chapter 2.1.3.

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

First, load the package:

In[1]:=
Click for copyable input

Then run the example:

In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=