X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=mjo%2Feja%2Feja_element.py;h=c5cbef9ebca32c2789ece22b0f9c4c46e6fb34a2;hb=f807c8c9046723a059eb4eea03dff89293510160;hp=cf213a7a0f85d2e6eeb0edb13cba14b2bd8a49d6;hpb=28ec09b5c64dd7a342a3ae8b35f809cc185d9c63;p=sage.d.git diff --git a/mjo/eja/eja_element.py b/mjo/eja/eja_element.py index cf213a7..c5cbef9 100644 --- a/mjo/eja/eja_element.py +++ b/mjo/eja/eja_element.py @@ -875,13 +875,18 @@ class FiniteDimensionalEuclideanJordanAlgebraElement(IndexedFreeModuleElement): TESTS: The minimal polynomial of the identity and zero elements are - always the same:: + always the same, except in trivial algebras where the minimal + polynomial of the unit/zero element is ``1``:: sage: set_random_seed() - sage: J = random_eja(nontrivial=True) - sage: J.one().minimal_polynomial() + sage: J = random_eja() + sage: mu = J.one().minimal_polynomial() + sage: t = mu.parent().gen() + sage: mu + int(J.is_trivial())*(t-2) t - 1 - sage: J.zero().minimal_polynomial() + sage: mu = J.zero().minimal_polynomial() + sage: t = mu.parent().gen() + sage: mu + int(J.is_trivial())*(t-1) t The degree of an element is (by one definition) the degree