Maxima Help -- Command Prompt Input & Output, not GUI interface
Subject: Maxima Help -- Command Prompt Input & Output, not GUI interface
From: Volker van Nek
Date: Sat, 27 Aug 2011 17:15:45 +0200
Henry,
you don't need a file to communicate with Maxima.
E.g. in Java you can create a Process-Object executing Maxima. The
exec-command is just 'maxima' in Linux and 'path-to\\maxima.bat' in Windows.
You get the Input- and OutputStream of this Process-Object and communicate
with Maxima.
Another way is to create a SocketServer and to connect Maxima (as a client)
to this server. Command syntax: 'maxima -s PORT' resp. 'path-to\\maxima.bat
-s PORT'. Now you can create a Socket(Client)-Object which connects to your
Server-Object. Use the Input- and OutputStream of this Socket(Client)-Object
to communicate with Maxima.
The GUI wxMaxima uses a socket connection to Maxima (similar to what I
described). wxMaxima is open source and written in C++. The file
wxMaxima.cpp describes the socket connection. Maybe this is an inspiration
for you.
Volker van Nek
2011/8/24 -Henry Hom <henryhom at live.cn>
>
>
> How can I use Maxima under *Command Prompt* but *not in GUI interface*? I'm
> going to write a nicer and more helpful GUI interface that uses *free
> language*.First the user inputs "solve x^2+5x+6=0 for x"Then my program
> translates "solve x^2+5x+6=0 for x" to "solve([x^2+5*x+6=0],[x])"Now I have
> a big problem. how can I use Maxima in Command Prompt? like:maxima
> solve([x^2+5x+6=0],[x]) > output.tmpThen Maxima will output the result to
> output.tmpThen I can load output.tmp. If you know how to use Maxima in
> Command Prompt, please send a mail to henryhom(at)live.cn .
> Thanks a lot Henry Hom (China)
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>