How to speed up programs by compiling



Compiling does not help because the functions require symbolic expressions..  One possibility is to have a numerical version and a 
symbolic version of all of the functions.  Maybe like mathematica, pwdefint() and npwdefint(), pwint() and npwint(), pw() and npw(), 
then mode_declare would actually have an effect.

Rich

----- Original Message ----- 
From: "Richard Hennessy" <rich.hennessy at verizon.net>
To: "Jack Schmidt" <jack.schmidt at sbcglobal.net>; <maxima at math.utexas.edu>
Sent: Friday, September 11, 2009 8:41 PM
Subject: Re: [Maxima] How to speed up programs by compiling


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.

Rich


_______________________________________________
Maxima mailing list
Maxima at math.utexas.edu
http://www.math.utexas.edu/mailman/listinfo/maxima


_______________________________________________
Maxima mailing list
Maxima at math.utexas.edu
http://www.math.utexas.edu/mailman/listinfo/maxima