Hi,
Someone, Laura is her name, asked me about how to call Maxima from a
Java program.
She wants to build a graphical interface in Java to make some circuit
computations and graphics (Bode diagrams). The idea is to use Java as
the graphical interface and Maxima to make the mathematics and the
graphics to be displayed by her program.
My (naive) response was to send to the system commands of this sort:
Runtime r = Runtime.getRuntime();
r.exec("maxima -r '0;solve(x^2+x+1);\n'");
but there must be better (and easy to implement) solutions.
I think small programs like this are very interesting from a pedagogical
point of view, adapting interfaces to the audience. Building a java
class that communicates with Maxima and knows how to extract the
information, could be also used by servelts and web interaction.
Has anybody worked on these ideas? Could you give Laura (and me) any
idea?
Thank you.
--
Mario Rodriguez Riotorto
www.biomates.net