X-Git-Url: http://gitweb.michael.orlitzky.com/?p=sage.d.git;a=blobdiff_plain;f=mjo%2Feja%2Feja_element.py;h=fbfd127ee496c46a9b8d06e3a1ca53129b8ce151;hp=16e15e5d081447d9b5c046e88a02edfdf678f21c;hb=9550136d8a78dbc1d1aa891e31a66eb993d4be3e;hpb=cc172fbdcd369542f90cf64e31611cf8698bc05a diff --git a/mjo/eja/eja_element.py b/mjo/eja/eja_element.py index 16e15e5..fbfd127 100644 --- a/mjo/eja/eja_element.py +++ b/mjo/eja/eja_element.py @@ -156,10 +156,10 @@ class FiniteDimensionalEJAElement(IndexedFreeModuleElement): to zero on that element:: sage: set_random_seed() - sage: x = HadamardEJA(3).random_element() + sage: x = random_eja().random_element() sage: p = x.characteristic_polynomial() - sage: x.apply_univariate_polynomial(p) - 0 + sage: x.apply_univariate_polynomial(p).is_zero() + True The characteristic polynomials of the zero and unit elements should be what we think they are in a subalgebra, too::