4.5.2.1 Quaternion Objects

class Quaternion
Quaternion( Q, x)

Create the element x of the quaternion algebra Q.

This function should be called only by Q. To create a Quaternion rom x yourself, create Q and then write Q(x).

Instances of class Quaternion have the following functions (in addition to inherited functions and special functions):

characteristic_polynomial,$  $ charpoly,$  $ conjugate,$  $ coordinates,$  $ minimal_polynomial,$  $ minpoly,$  $ norm,$  $ trace,$  $ vector

Further documentation:

vector( )

Returns a reference to the vector that defines this quaternion.

Instances of class Quaternion also have the following special functions:

__add__,$  $ __cmp__,$  $ __div__,$  $ __invert__,$  $ __mul__,$  $ __neg__,$  $ __pow__,$  $ __sub__

See About this document... for information on suggesting changes.