From d006c2e856b970d2f8e77d738030ef2e63ec5b78 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sat, 6 Mar 2021 09:30:24 -0500 Subject: [PATCH] octonions: add a test for Cartesian products. --- mjo/octonions.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mjo/octonions.py b/mjo/octonions.py index fb4b833..2850545 100644 --- a/mjo/octonions.py +++ b/mjo/octonions.py @@ -382,6 +382,16 @@ class OctonionMatrixAlgebra(HurwitzMatrixAlgebra): | e2 - e6 | e3 - e7 | +---------+---------+ + :: + + sage: A1 = OctonionMatrixAlgebra(1,QQ) + sage: A2 = OctonionMatrixAlgebra(1,QQ) + sage: cartesian_product([A1,A2]) + Module of 1 by 1 matrices with entries in Octonion algebra with + base ring Rational Field over the scalar ring Rational Field (+) + Module of 1 by 1 matrices with entries in Octonion algebra with + base ring Rational Field over the scalar ring Rational Field + TESTS:: sage: set_random_seed() -- 2.43.2