Working with Quaternions
  • Functions
    • GTQAbs
    • GTQConjugate
    • GTQInverse
    • GTQPolar
    • GTQuaternionQ
  • Related Guides
    • W. Hergert, R. M. Geilhufe, Group Theory in Solid State Physics and Photonics: Problem Solving with Mathematica, Wiley-VCH, ISBN: 978-3-527-41133-7 (2018).
  • Tech Notes
    • Handling of symmetry elements: multiplication, symbols, matrices, etc.
    • Functions
      • GTQAbs
      • GTQConjugate
      • GTQInverse
      • GTQPolar
      • GTQuaternionQ
    • Related Guides
      • W. Hergert, R. M. Geilhufe, Group Theory in Solid State Physics and Photonics: Problem Solving with Mathematica, Wiley-VCH, ISBN: 978-3-527-41133-7 (2018).
    • Tech Notes
      • Handling of symmetry elements: multiplication, symbols, matrices, etc.
GROUP THEORY TUTORIAL
  • Functions
    • GTQAbs
    • GTQConjugate
    • GTQInverse
    • GTQPolar
    • GTQuaternionQ
  • Related Guides
    • W. Hergert, R. M. Geilhufe, Group Theory in Solid State Physics and Photonics: Problem Solving with Mathematica, Wiley-VCH, ISBN: 978-3-527-41133-7 (2018).
  • Tech Notes
    • Handling of symmetry elements: multiplication, symbols, matrices, etc.
    • Functions
      • GTQAbs
      • GTQConjugate
      • GTQInverse
      • GTQPolar
      • GTQuaternionQ
    • Related Guides
      • W. Hergert, R. M. Geilhufe, Group Theory in Solid State Physics and Photonics: Problem Solving with Mathematica, Wiley-VCH, ISBN: 978-3-527-41133-7 (2018).
    • Tech Notes
      • Handling of symmetry elements: multiplication, symbols, matrices, etc.

Working with Quaternions

GTPack includes basic functions for working with quaternions represented as a list.

{w,{x,y,z}}w + i x + j y + k z
Load GTPack.
Wolfram Language code: Needs["GroupTheory`"]
We obtain the quaternion representation of the symmetry element C3z (three-fold rotation about the z-axis) by using GTGetQuaternion.
Wolfram Language code: q = GTGetQuaternion[C3z]
GTQuaternionQ[q]gives True if q is a quaternion.
Wolfram Language code: GTQuaternionQ[q]
a⋄bmultiplication of two quaternions a and b.
GTQInverse[quaternion]gives the inverse quaternion of a quaternion.
GTQConjugate[quaternion]gives the conjugate quaternion of a quaternion.
The multiplication of two quaternions can be calculated with ⋄
Wolfram Language code: q1 = GTGetQuaternion[C3z] q2 = GTGetQuaternion[C2x]
Wolfram Language code: q1⋄q2
Wolfram Language code: GTGetSymbol[%]
Quaternions form a division ring hence for every quaternion there exists a multiplicative inverse element. Use GTQInverse...
Wolfram Language code: q = GTGetQuaternion[C3z] GTQInverse[q]
Wolfram Language code: GTGetSymbol[%]
Wolfram Language code: q⋄GTQInverse[q]
Obtain the conjugate quaternion by GTQConjugate...
Wolfram Language code: GTQConjugate[q]
Wolfram Language code: q + GTQConjugate[q]
Wolfram Language code: q - GTQConjugate[q]
GTQAbs[quaternion]gives the absolute value of a quaternion.
GTQPolar[quaternion]gives the polar angle of a quaternion.
The absolute value of a quaternion can be calculated by GTQAbs...
Wolfram Language code: GTQAbs[q]
The polar angle of a quaternion can be calculated by GTQPolar...
Wolfram Language code: GTQPolar[q]

Related Guides

    ▪
  • W. Hergert, R. M. Geilhufe, Group Theory in Solid State Physics and Photonics: Problem Solving with Mathematica, Wiley-VCH, ISBN: 978-3-527-41133-7 (2018).

Related Tech Notes

    ▪
  • Handling of symmetry elements: multiplication, symbols, matrices, etc.
Not Found - Wolfram Cloud