On Wed, 29 Nov 2006 10:20:59 -0800, Jurgis Pralgauskis  
<[EMAIL PROTECTED]> wrote:

>
> hello,
>
> in notepad I succeed
>> %maxima
>> pp(ex) := concat(if atom(ex) then ex  else concat(op(ex), "(",
>> apply(concat, map(pp, args(ex))), ")"), ",")
> but this doesn't do the trick
>> pp = maxima.function('ex', 'concat(if atom(ex) then ex  else
>> concat(op(ex), "(", apply(concat, map(pp, args(ex))), ")"), ",")')
> any suggestions?

In sage if you type

   maxima.eval('any string at all')

then it is fed directly to maxima.  This is exactly how the %maxima
thing is implemented.  So this is what you want to do.

It would be clearer if the command were

   maxima.exec('any string at all')

but exec is a reserved word in python, so that's invalid syntax.

William

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-forum
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to