From 7a401428c4a337b7e7e4e23fe917945c08aceece Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Wed, 19 Jun 2019 10:18:33 -0400 Subject: [PATCH] mjo/euclidean_jordan_algebra.py: add examples for eja_rn. --- mjo/eja/euclidean_jordan_algebra.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/mjo/eja/euclidean_jordan_algebra.py b/mjo/eja/euclidean_jordan_algebra.py index 5ccf2f2..e0a6f2d 100644 --- a/mjo/eja/euclidean_jordan_algebra.py +++ b/mjo/eja/euclidean_jordan_algebra.py @@ -11,6 +11,26 @@ def eja_rn(dimension, field=QQ): """ Return the Euclidean Jordan Algebra corresponding to the set `R^n` under the Hadamard product. + + EXAMPLES: + + This multiplication table can be verified by hand:: + + sage: J = eja_rn(3) + sage: e0,e1,e2 = J.gens() + sage: e0*e0 + e0 + sage: e0*e1 + 0 + sage: e0*e2 + 0 + sage: e1*e1 + e1 + sage: e1*e2 + 0 + sage: e2*e2 + e2 + """ # The FiniteDimensionalAlgebra constructor takes a list of # matrices, the ith representing right multiplication by the ith -- 2.44.2