]> gitweb.michael.orlitzky.com - sage.d.git/blobdiff - mjo/hurwitz.py
hurwitz: fix Hurwitz matrix algebra generators.
[sage.d.git] / mjo / hurwitz.py
index a1a6af06e944e97ea49536b8b9f76e1ecf54cde6..ccc8219b1a92036c6ac92f118339c160a885977b 100644 (file)
@@ -440,6 +440,31 @@ class OctonionMatrixAlgebra(HurwitzMatrixAlgebra):
         +---------------------+
         | 1.00000000000000*e0 |
         +---------------------+
+        sage: A.gens()
+        (+---------------------+
+        | 1.00000000000000*e0 |
+        +---------------------+,
+        +---------------------+
+        | 1.00000000000000*e1 |
+        +---------------------+,
+        +---------------------+
+        | 1.00000000000000*e2 |
+        +---------------------+,
+        +---------------------+
+        | 1.00000000000000*e3 |
+        +---------------------+,
+        +---------------------+
+        | 1.00000000000000*e4 |
+        +---------------------+,
+        +---------------------+
+        | 1.00000000000000*e5 |
+        +---------------------+,
+        +---------------------+
+        | 1.00000000000000*e6 |
+        +---------------------+,
+        +---------------------+
+        | 1.00000000000000*e7 |
+        +---------------------+)
 
     ::
 
@@ -519,6 +544,19 @@ class QuaternionMatrixAlgebra(HurwitzMatrixAlgebra):
         +-----+
         | 1.0 |
         +-----+
+        sage: A.gens()
+        (+-----+
+        | 1.0 |
+        +-----+,
+        +---+
+        | i |
+        +---+,
+        +---+
+        | j |
+        +---+,
+        +---+
+        | k |
+        +---+)
 
     ::
 
@@ -598,6 +636,13 @@ class ComplexMatrixAlgebra(HurwitzMatrixAlgebra):
         +------------------+
         | 1.00000000000000 |
         +------------------+
+        sage: A.gens()
+        (+------------------+
+        | 1.00000000000000 |
+        +------------------+,
+        +--------------------+
+        | 1.00000000000000*I |
+        +--------------------+)
 
     ::