X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=mjo%2Feja%2Feja_element.py;h=f44bee1c3f20d3040f0f77d8ff472b08c1bb5e9e;hb=9f91faac758f0ef3a1ea7b1ad1cb506e73735d89;hp=3491b69230b0d430fdfa936b3399ebfc88259988;hpb=99bc567cd9c1bfd409d4b1621025c0287df4d1c1;p=sage.d.git diff --git a/mjo/eja/eja_element.py b/mjo/eja/eja_element.py index 3491b69..f44bee1 100644 --- a/mjo/eja/eja_element.py +++ b/mjo/eja/eja_element.py @@ -1285,6 +1285,9 @@ class FiniteDimensionalEuclideanJordanAlgebraElement(IndexedFreeModuleElement): True """ + if self.parent().is_trivial(): + return self + if self.is_nilpotent(): raise ValueError("this only works with non-nilpotent elements!")