From: Michael Orlitzky Date: Mon, 24 Jun 2019 18:05:01 +0000 (-0400) Subject: eja/euclidean_jordan_algebra.py: add another test for degree(). X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=20669f123d754e17fdc39cbb2fd018ac06d6c930;p=sage.d.git eja/euclidean_jordan_algebra.py: add another test for degree(). --- diff --git a/mjo/eja/euclidean_jordan_algebra.py b/mjo/eja/euclidean_jordan_algebra.py index 0b6b15d..8487e0e 100644 --- a/mjo/eja/euclidean_jordan_algebra.py +++ b/mjo/eja/euclidean_jordan_algebra.py @@ -94,6 +94,16 @@ class FiniteDimensionalEuclideanJordanAlgebra(FiniteDimensionalAlgebra): sage: (e0 - e1).degree() 2 + In the spin factor algebra (of rank two), all elements that + aren't multiples of the identity are regular:: + + sage: set_random_seed() + sage: n = ZZ.random_element(1,10).abs() + sage: J = eja_ln(n) + sage: x = J.random_element() + sage: x == x.coefficient(0)*J.one() or x.degree() == 2 + True + """ return self.span_of_powers().dimension()