GTGetQuaternion

GTGetQuaternion[symmetry element]
gives the quaternion corresponding to a symmetry element.

DetailsDetails

  • Suppose a rotation by an angle about an axis , then the relating quaternion is defined by
  • The input of GTGetQuaternion can be of type symbol, matrix, quaternion, and Euler angles.
  • In GTPack quaternions are implemented in the form {a,{i,j,k}}.
  • See: W. Hergert, M. Geilhufe, Group Theory in Solid State Physics and Photonics. Problem Solving with Mathematica, chapter 2.1.3

ExamplesExamplesopen allclose all

Basic Examples  (4)Basic Examples  (4)

First, load the package:

In[1]:=
Click for copyable input

Then run the example:

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

Input of Euler angles:

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

Input of a matrix:

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

Input of a quaternion results in the same quaternion:

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