I am working in windows XP
ver. 5.9.1 runs my batch file and gives me the results on the prompt screen.
ver 5.9..1.9rc1 runs my batch file but no results are displayed.
ver 5.9..1.9rc2 runs my batch file but no results are displayed.
these last 2 move the input prompt up to i2
but nun of the variables declaired in the file are available.
ie no results on the screen and no results in 'memory'.
here is the batch file
w:2;
globalsolve:true;
solve([a1*s*h1=(h2-h1)/r1 + U, a2*s*h2= (h1-h2)/r1 - h2/r2],[h1,h2]);
ev(h1 ,[a1=1,a2=1,r1=.5,r2=1/3], ratsimp);
ev(h2 ,[a1=1,a2=1,r1=.5,r2=1/3]);
ratsimp(%);
here is the results from the last 2:
Maxima 5.9.1.9rc1 http://maxima.sourceforge.net
Using Lisp GNU Common Lisp (GCL) GCL 2.6.7 (aka GCL)
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
This is a development version of Maxima. The function bug_report()
provides bug reporting information.
(%i1)
(%i2)
the old ver. works good.
axima 5.9.1 http://maxima.sourceforge.net
Using Lisp Kyoto Common Lisp GCL 2.6.5 (aka GCL)
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
This is a development version of Maxima. The function bug_report()
provides bug reporting information.
(%i1)
batching #pC:/Documents and Settings/doug/My Documents/Maxima/tank.mac
(%i2) w : 2
(%o2) 2
(%i3) GLOBALSOLVE : TRUE
(%o3) TRUE
h2 - h1 h1 - h2 h2
(%i4) SOLVE([A1 s h1 = U + -------, A2 s h2 = ------- - --], [h1, h2])
r1 r1 r2
(A2 r1 r2 s + r2 + r1) U
(%o4) [[h1 : ----------------------------------------------,
2
A1 A2 r1 r2 s + (A2 r2 + A1 r2 + A1 r1) s + 1
r2 U
h2 : ----------------------------------------------]]
2
A1 A2 r1 r2 s + (A2 r2 + A1 r2 + A1 r1) s + 1
1
(%i5) EV(h1, [A1 = 1, A2 = 1, r1 = 0.5, r2 = -], RATSIMP)
3
RAT replaced 0.83333333333333 by 5//6 = 0.83333333333333
RAT replaced 0.16666666666667 by 1//6 = 0.16666666666667
RAT replaced 1.166666666666667 by 7//6 = 1.166666666666667
RAT replaced 0.16666666666667 by 1//6 = 0.16666666666667
(s + 5) U
(%o5) ------------
2
s + 7 s + 6
1
(%i6) EV(h2, [A1 = 1, A2 = 1, r1 = 0.5, r2 = -])
3
U
(%o6) -------------------------------------------------
2
3 (0.16666666666667 s + 1.166666666666667 s + 1)
(%i7) RATSIMP(%)
RAT replaced 1.166666666666667 by 7//6 = 1.166666666666667
RAT replaced 0.16666666666667 by 1//6 = 0.16666666666667
2 U
(%o7) ------------
2
s + 7 s + 6
(%i8)
Doug Stewart