From: Michael Orlitzky Date: Thu, 9 Apr 2026 00:28:49 +0000 (-0400) Subject: mjo/hurwitz.py: update tests to use Sage's octonions X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=f423676800e9be4e49e00f3ca07f81e662e6ef14;p=sage.d.git mjo/hurwitz.py: update tests to use Sage's octonions --- diff --git a/mjo/hurwitz.py b/mjo/hurwitz.py index 7ceebd3..6d02168 100644 --- a/mjo/hurwitz.py +++ b/mjo/hurwitz.py @@ -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::