Package sage :: Package algebras :: Module quaternion :: Class Quaternion
[show private | hide private]
[frames | no frames]

Type Quaternion

object --+    
         |    
   Element --+
             |
            Quaternion


Method Summary
  __init__(self, Q, x)
Create the element x of the quaternion algebra Q.
  __add__(self, other)
  __cmp__(self, other)
  __div__(self, other)
  __invert__(self)
  __mul__(self, other)
  __neg__(self)
  __pow__(self, n)
  __repr__(self)
  __sub__(self, other)
  characteristic_polynomial(self)
  charpoly(self)
  conjugate(self)
  coordinates(self)
  minimal_polynomial(self)
  minpoly(self)
  norm(self)
  trace(self)
  vector(self)
Returns a reference to the vector that defines this quaternion.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Method Details

__init__(self, Q, x)
(Constructor)

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).
Overrides:
sage.ext._element.Element.__init__

vector(self)

Returns a reference to the vector that defines this quaternion.

Generated by Epydoc 2.1 on Fri May 20 19:41:04 2005 http://epydoc.sf.net