Calling Maxima $diff from java



On Tue, Mar 26, 2013 at 3:38 PM, Mohamed Rayes <rayes.o.mohamed at gmail.com>wrote:

> Richard Fateman <fateman <at> eecs.berkeley.edu> writes:
> > I find this pretty hard to believe... that all this is necessary.
> > Can you achieve your goal by just transmitting  the string to a running
> > maxima,
> >
> > "diff(sin(x),x);"
> > and getting the answer as a string?...
>


> Calling maxima with "diff(sin(x),x);" would work, but will return
> a 2D output string which is very difficult to manipulate or process
> in java program.
>

string(diff(sin(x),x)$

or

display2d:false$

or even

?print(diff(sin(x)))$    to get the internal (Lisp-based, fully
parenthesized) format