]> gitweb.michael.orlitzky.com - sage.d.git/commitdiff
mjo/hurwitz.py: update tests to use Sage's octonions
authorMichael Orlitzky <michael@orlitzky.com>
Thu, 9 Apr 2026 00:28:49 +0000 (20:28 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Thu, 9 Apr 2026 00:30:35 +0000 (20:30 -0400)
mjo/hurwitz.py

index 7ceebd3ed38dacbf091759201c3c00f9e54dc0bc..6d021685b322ff664cc92eb18eb7c21ced4ff01f 100644 (file)
@@ -554,7 +554,7 @@ class HurwitzMatrixAlgebra(MatrixAlgebra):
 
         SETUP::
 
-            sage: from mjo.hurwitz import Octonions, HurwitzMatrixAlgebra
+            sage: from mjo.hurwitz import HurwitzMatrixAlgebra
 
         EXAMPLES:
 
@@ -567,8 +567,8 @@ class HurwitzMatrixAlgebra(MatrixAlgebra):
             (I,)
             sage: QuaternionAlgebra(AA,1,-1).gens()
             (i, j, k)
-            sage: Octonions().gens()
-            (e0, e1, e2, e3, e4, e5, e6, e7)
+            sage: OctonionAlgebra(QQ).gens()
+            (i, j, k, l)
 
         The unit element is always returned by this method, so the
         sets of generators have cartinality 1,2,4, and 8 as you'd
@@ -612,7 +612,7 @@ class OctonionMatrixAlgebra(HurwitzMatrixAlgebra):
 
     SETUP::
 
-        sage: from mjo.hurwitz import Octonions, OctonionMatrixAlgebra
+        sage: from mjo.hurwitz import OctonionMatrixAlgebra
 
     EXAMPLES::