]> gitweb.michael.orlitzky.com - sage.d.git/commitdiff
eja/euclidean_jordan_algebra.py: add another test for degree().
authorMichael Orlitzky <michael@orlitzky.com>
Mon, 24 Jun 2019 18:05:01 +0000 (14:05 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 24 Jun 2019 18:05:01 +0000 (14:05 -0400)
mjo/eja/euclidean_jordan_algebra.py

index 0b6b15da68fd4404f69ce094f4f96d07ad2c6adc..8487e0ecea385d00f45c176bdc43b45d31d617ff 100644 (file)
@@ -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()