Hi,
I have made page with some notes about it ( I hope without errors)
http://fraktal.republika.pl/maxima_lisp.html
regards
Adam
Barton Willis pisze:
>>From the Maxima language, it's possible to call a CL function, say
> ?cadr(a+b+c) --> a, but other than calling a CL function from the
> Maxima language, there isn't any way to, as you say, make a Maxima
> function with Lisp code inside.
>
> Within Maxima code, I suggest sticking to higher-level Maxima
> functions instead of inserting calls to CL functions such as
> ?cadr(a+b+c) --> a. Your code will be easier to maintain, error
> messages will be more understandable, and your code will be protected
> from changes to Maxima data structures
>
> Barton
>
> -----maxima-bounces at math.utexas.edu wrote: -----
>
>> To: maxima at math.utexas.edu
>> From: Adam Majewski <adammaj1 at o2.pl>
>> Sent by: maxima-bounces at math.utexas.edu
>> Date: 11/10/2009 10:35AM
>> Subject: Re: [Maxima] lisp and Maxima
>>
>> Dear Barton ,
>>
>> Thx for your answer.
>> I usually work with batch files.
>>
>> Is it a good choice to have a program with some code in Lisp and some
>> code in Maxima ?
>>
>> Should I keep Lisp code in different file then Maxima code ( as a package)
>> ?
>>
>> Is it a good idea to make Maxima function with Lisp code inside ?
>>
>> Adam
>>
>>
>>
>>> If you need to work with arrays, IEEE32 floats, IEEE32 complex floats,
>>> hash tables, or do a great deal of complex number big float
>>> arithmetic, use CL, not Maxima. Also, if you need to define a data
>>> structure, such as a something similar to a Pascal record, use
>>> CL. Finally, if you want to write OO code, use CL.
>>>
>>> If the code will mostly do calculus-like things (expand, factor,
>>> solve, integrate, substitute, ...), use Maxima. It's likely that your
>>> code will be no longer, and will be easier to write and debug. Also,
>>> you'll
>>> have fewer problems with confusion over expressions in CRE form or
>>> general form. Finally, more users will understand your code and be
>>> able to improve it. Don't assume that compiled CL code will run 10
>>> times faster than compiled Maxima code. It's unlikely that it will.
>>>
>>> Also, it's possible to write simplifying functions in Maxima.
>>>
>>> Barton
>>>
>>> maxima-bounces at math.utexas.edu wrote on 11/09/2009 02:48:41 PM:
>>>
>>>> [image removed]
>>>>
>>>> [Maxima] lisp and Maxima
>>>>
>>>> Adam Majewski
>>>>
>>>> to:
>>>>
>>>> maxima
>>>>
>>>> 11/09/2009 02:49 PM
>>>>
>>>> Sent by:
>>>>
>>>> maxima-bounces at math.utexas.edu
>>>>
>>>> Hi,
>>>>
>>>> There are some possibilities of using Lisp/Maxima :
>>>> - Lisp function or whole Lisp unit
>>>> - mixed Maxima and Lisp code
>>>> - only Maxima code.
>>>>
>>>> Is it possible to give some hints what should one choose ?
>>>>
>>>> Regards
>>>>
>>>> Adam
>>>>
>>>> _______________________________________________
>>>> 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