About Maxima and MS-DOS



On 9/11/07, Christophe BAL <christophe_bal at club-internet.fr> wrote:

> I'm looking for some technical informations about MS-DOS comands with
> Maxima. I've tried the following one which doesn't work :
>
> env MAXIMA_USERDIR=bin\maxima --batch="maxima_1.in" > maxima_1.out & jobs -l
> > maxima_1.pid
>
> maxima_1.in  is a file with a simple comand like
> integrate(2/x^3;x);
>
> I want to have a file with the answer written in a single line :
> -1/x^2

You can assign display2d : false; and then the output looks like this.

display2d : false;
expand ((a + b)^10);
 =>
b^10+10*a*b^9+45*a^2*b^8+120*a^3*b^7+210*a^4*b^6+252*a^5*b^5
    +210*a^6*b^4+120*a^7*b^3+45*a^8*b^2+10*a^9*b+a^10

Note that long outputs are printed over multiple lines.
You can set the global variable linel to be a very large number
if you want -- then each output is printed on a single line.

> Can you help me because I do not find any documentation about
> MS-DOS comands for Maxima ? This will help me to do some
> simple PhP scripts which could use Maxima.

Not sure what you mean by MS-DOS commands.
Maybe the command line options --disable-readline and
 --very-quiet are helpful to you. The --help option shows information
about those and other command line options.

There have been various projects to use Maxima as the computational
engine behind a web server. Some of those projects are listed at:
http://maxima.sourceforge.net/relatedprojects.shtml
Some of those projects use PHP. You should also consider
using Lisp, since it is much easier to talk to Maxima from a
Lisp program; you don't need to send strings back and forth.

Anyway I hope this helps in some way, & good luck with your project.

Robert Dodier