On Mon, 2010-06-14 at 16:47 +0200, rene kaelin wrote:
> Hello
>
> I'm new here and not an English-speaking person. So forgive me for all the mistakes, please.
Welcome!
> I'm writing a Java-Applet where you can type in an expression (e.g. "(2+1)*4").
> I'd like to send this expression to Maxima. Maxima should calc the result and give it back to my Java-Applet.
Try this:
maxima -q --batch-string="(2+1)*4;"
your Java applet will have tp execute commands like that one and then
parse the output to extract the answer.
For more complicated uses of Maxima, you will have to open a socket to
communicate with Maxima, as done in xmaxima (tcl/tk) or wxmaxima (C
++/wxwindows).
Regards,
Jaime