[Maxima] How to speed up programs by compiling
rich.hennessy at verizon.net
Fri Sep 11 19:41:15 CDT 2009
I tried compile_file("c:/pw.mac") and some functions in it will not translate or compile for various reasons. I am going to try
replacing the code that does not compile with something that will except I noticed that matrix() does not compile at all, there is
no lisp translation for this function. piecewise() and pwsimp() use this for pretty printing the answer when the array option is
used. I just returns done now and prior to returning done it calls disp() on the matrix. I suppose I could separate piecewise into
a separate file that is loaded when "pw.mac" is loaded to make it compile cleanly. Right now the pw.o file is pretty useless.
----- Original Message -----
From: "Jack Schmidt" <jack.schmidt at sbcglobal.net>
To: <maxima at math.utexas.edu>
Sent: Friday, September 11, 2009 2:03 PM
Subject: Re: [Maxima] How to speed up programs by compiling
Richard Fateman <fateman at cs.berkeley.edu> wrote:
> Declaring items as "number" is probably not saving time, since the
> Lisp system must call a subroutine to do arithmetic on "numbers"
> anyway. There are too many different kinds of numbers.
Had I been present at the Creation, I would have suggested fewer.
Maxima mailing list
Maxima at math.utexas.edu
More information about the Maxima