X-Git-Url: http://gitweb.michael.orlitzky.com/?p=sage.d.git;a=blobdiff_plain;f=mjo%2Foctonions.py;h=2850545280b122cb8109324f4b6431ed0f5076ec;hp=fb4b83396ea4d8bcac0bd058eae6406381b0eccc;hb=d006c2e856b970d2f8e77d738030ef2e63ec5b78;hpb=ff77756eb6b57897d27656a69562663782f64d92 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()