I am trying to run maxima in batch mode but I get
syntax errors trying to include y/n responses in my batch script.
how do I reply to the command's requests?
I run maxima in batch mode with a batch file:
maxima -b /home/vanallp/pbstests/maxima
This is the file:
load(affine);
dotexptsimp:false;
dotscrules:true;
matrix_element_mult:".";
declare(a,constant,b,constant,c,constant);
declare_weights(x,1,y,1,z,1);
all_dotsimp_denoms:[];
r1:a*x.y+b*y.x+c*z.z;
r2:a*z.x+b*x.z+c*y.y;
r3:a*y.z+b*z.y+c*x.x;
set_up_dot_simplifications([r1,r2,r3],4);
y
n
n
n
[x,y,z];
monomial_dimensions(1);
y
monomial_dimensions(2);
y
monomial_dimensions(3);
y
monomial_dimensions(4);
y
fast_central_elements([x,y,z],3);
factor(all_dotsimp_denoms);
<eof>
Instead of getting response from the file it prompts the terminal session...
Thanks!
--
Paul Van Allsburg