Thread View: net.math.symbolic
3 messages
3 total messages
Started by Jeffrey P. Golden
Mon, 26 Aug 1985 17:13
Speeding up Macsyma
Author: Jeffrey P. Golden
Date: Mon, 26 Aug 1985 17:13
Date: Mon, 26 Aug 1985 17:13
42 lines
2814 bytes
2814 bytes
JPG@MIT-MC.ARPA 08/21/85 16:34:25 Re: symalg: speeding up MACSYMA From: bcsaic!toms (tom skillman) Newsgroups: net.math.symbolic Subject: Re: Speeding up macsyma Message-Id: <210@bcsaic.UUCP> Date: 13 Aug 85 16:07:32 GMT References: <365@brl-sem.ARPA> Reply-To: toms@bcsaic.UUCP (tom skillman) Organization: Boeing Computer Services AI Center, Seattle Keywords: macsyma SMP REDUCE Apparently-To: symalg I don't know how to speed up macsyma but SMP from Inference Corp. in LA (213-417-7997) is supposed to be faster than macsyma. It is written in C and includes a FORTRAN code generator. MACSYMA also includes a FORTRAN code generator. What does "SMP ... is supposed to be faster than macsyma" mean? Who supposes this? Faster at what? How comprehensive are their tests? This issue has been discussed on the 'symalg' list in the past. The only source for this statement that I am aware of is a sheet put out by Inference Corp. I expect MACSYMA may be faster at some things, SMP at others. This is, in fact, confirmed in a paper by Wester and Steinberg in the Proceedings of the 1984 MACSYMA Users' Conference entitled "A Survey of Symbolic Differentiation Implementations". They conclude: "For some problems, MACSYMA was the fastest code (when used optimally), while for others, MAPLE or SMP was faster." I'm not surprised that the sheet put out by Inference contains mostly examples where SMP came out faster. I didn't expect them to publish examples where MACSYMA was faster. If you have independent benchmarks to support your claim, please let us know. I think this sort of "speed" contest is somewhat overblown anyway. What is more important is a comparison of capabilities and features. Norm Levin's concern for speed within MACSYMA (or SMP, or ...), however, is of importance. MACSYMA has good optimization and translation capabilities. There are articles on these in the aforementioned 1984 Proceedings. If you have a MACSYMA which lacks some capability here, I suggest you contact the distributors of MACSYMA to see what is now available.
Re: Speeding up Macsyma
Author: George J. Carrette
Date: Mon, 26 Aug 1985 17:21
Date: Mon, 26 Aug 1985 17:21
30 lines
1905 bytes
1905 bytes
The Macsyma command FORTRAN can indeed create fortran code
fragments from symbolic expressions in macsyma. These can
be edited into a fortran function or main program. The FORT
command in MAX$DISK:[LPH]FORT.MC (in the DOE-MACSYMA release)
gets rid of the editing step in many cases by generating the
FUNCTION, RETURN, and END statements for you. However, even
that may not be worth the bother if you only want reasonable
efficiency in numerical code for calling the 3-D plot command
or contourplot or the ROMBERG numerical integrator, all of which
may evaluate a given expression many many times. The use of
the Macsyma->Lisp translator and Lisp->Machine-code compiler may
be all that is required. Here is an example from the PLOT DEMO:
(X^3+Y^4-0.2*X)*EXP(-X^2-Y^2)+0.3*EXP(-(X-1.225)^2-Y^2);
PLOT3D(%,X,-3,3,Y,-3,3)$
If instead we define a function:
F(X,Y):=(MODE_DECLARE([X,Y],FLOAT),
(X^3+Y^4-0.2*X)*EXP(-X^2-Y^2)+0.3*EXP(-(X-1.225)^2-Y^2));
And:
TRANSLATE(F); COMPILE(F);
Then the PLOT3D will go noticably faster as
PLOT3D(F(X,Y),X,-3,3,Y,-3,3);
Files of Macsyma source code are translated and compiled with the
TRANSLATE_FILE and COMPILE_LISP_FILE commands.
-gjc
Re: Speeding up Macsyma
Author: tom skillman
Date: Thu, 05 Sep 1985 18:21
Date: Thu, 05 Sep 1985 18:21
19 lines
1413 bytes
1413 bytes
In article <2666@randvax.UUCP> Jeffrey P. Golden <JPG@MIT-MC.ARPA> writes: >JPG@MIT-MC.ARPA 08/21/85 16:34:25 Re: symalg: speeding up MACSYMA >> From: bcsaic!toms (tom skillman) >> >> I don't know how to speed up macsyma but SMP from Inference Corp. in LA >> (213-417-7997) is supposed to be faster than macsyma. It is written in >> C and includes a FORTRAN code generator. >> > >What does "SMP ... is supposed to be faster than macsyma" mean? >Who supposes this? Faster at what? How comprehensive are their tests? >... Well excuuuusssseeee me! I was responding to a simple request for information with a simple response of a possible source. Why are you so defensive about MACSYMA. Tom Skillman Boeing AI Center
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads