From: Michael Orlitzky Date: Wed, 19 Jun 2019 14:18:33 +0000 (-0400) Subject: eja: add examples for eja_rn. X-Git-Url: http://gitweb.michael.orlitzky.com/?a=commitdiff_plain;ds=sidebyside;h=8b3542a01a689367ae4692bc2658a6864f1be53f;p=sage.d.git eja: add examples for eja_rn. --- 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