From e4ab9fe3e927234b37551f9865a28d1895f79f4c Mon Sep 17 00:00:00 2001 From: Lorenzo Salvadore Date: Mon, 15 Jun 2020 17:07:48 +0000 Subject: math/maxima: Add ECL and SAGE options - Add an ECL option to build maxima using ecl lisp. Option enabled by default so that Sage can work properly when using packages. [1] - Add a SAGE option (implies ECL) to apply some patches so that Sage can work properly. This option is also enabled by default to get working Sage packages. [1] - Fix a bug in xmaxima about documentation. This also introduces an XMAXIMA option (enabled by default) because to have xmaxima working we need to ensure that DOCS and TEST are enabled, which is done by using XMAXIMA_IMPLIES. This also has the advantage to remove USES= tk for users who want to disable XMAXIMA. [2] - Modify TEST option so that it only installs tests, but it does not run them any more in the post-build-TEST-on target. Tests can still be run using "make test". Submitted by: thierry (based on) [1] Reported by: thierry [2] Approved by: thierry, tcberner (co-mentor) Differential Revision: https://reviews.freebsd.org/D24959 --- .../files/extra-patch-share_linearalgebra_matrixexp.lisp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 math/maxima/files/extra-patch-share_linearalgebra_matrixexp.lisp (limited to 'math/maxima/files/extra-patch-share_linearalgebra_matrixexp.lisp') diff --git a/math/maxima/files/extra-patch-share_linearalgebra_matrixexp.lisp b/math/maxima/files/extra-patch-share_linearalgebra_matrixexp.lisp new file mode 100644 index 000000000000..151d0776760b --- /dev/null +++ b/math/maxima/files/extra-patch-share_linearalgebra_matrixexp.lisp @@ -0,0 +1,14 @@ +--- share/linearalgebra/matrixexp.lisp.orig 2019-10-21 03:38:58 UTC ++++ share/linearalgebra/matrixexp.lisp +@@ -138,8 +138,9 @@ + (print `(ratvars = ,$ratvars gcd = '$gcd algebraic = ,$algebraic)) + (print `(ratfac = ,$ratfac)) + (merror "Unable to find the spectrum"))) +- +- (setq res ($fullratsimp (ncpower (sub (mult z ($ident n)) mat) -1) z)) ++ ++;; patch borrowed from SageMath ++ (setq res ($fullratsimp ($invert_by_lu (sub (mult z ($ident n)) mat) '$crering) z)) + (setq m (length sp)) + (dotimes (i m) + (setq zi (nth i sp)) -- cgit v1.2.3