GroupTheory`
GroupTheory`

GTQuaternionQ

GTQuaternionQ[q]

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

Details and Options

  • 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.

Examples

Basic Examples  (2)

First, load the package:

Then run the example: