From 83f719b66100fdb5bf5035355c48b5337be6b11e Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Fri, 21 Jun 2019 12:45:07 -0400 Subject: [PATCH] eja: add eja_minimal_polynomial() function. --- mjo/eja/euclidean_jordan_algebra.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mjo/eja/euclidean_jordan_algebra.py b/mjo/eja/euclidean_jordan_algebra.py index 7611fe7..be281bf 100644 --- a/mjo/eja/euclidean_jordan_algebra.py +++ b/mjo/eja/euclidean_jordan_algebra.py @@ -7,6 +7,13 @@ what can be supported in a general Jordan Algebra. from sage.all import * +def eja_minimal_polynomial(x): + """ + Return the minimal polynomial of ``x`` in its parent EJA + """ + return x._x.matrix().minimal_polynomial() + + def eja_rn(dimension, field=QQ): """ Return the Euclidean Jordan Algebra corresponding to the set -- 2.44.2