1 --- a/share/linearalgebra/matrixexp.lisp
2 +++ b/share/linearalgebra/matrixexp.lisp
4 (print `(ratvars = ,$ratvars gcd = '$gcd algebraic = ,$algebraic))
5 (print `(ratfac = ,$ratfac))
6 (merror "Unable to find the spectrum")))
8 - (setq res ($fullratsimp (ncpower (sub (mult z ($ident n)) mat) -1) z))
10 + (setq res ($fullratsimp ($invert_by_lu (sub (mult z ($ident n)) mat) '$crering) z))