OK.
I just tried it from the prompt and it worked!
(%i17) batch("C:/Documents and Settings/doug/My Documents/Maxima/tank");
batching #pC:/Documents and Settings/doug/My Documents/Maxima/tank.mac
(%i18) KILL(ALL)
(%o0) DONE
(%i1) GLOBALSOLVE:TRUE
(%o1) TRUE
(%i2) DISPLAY2D:FALSE
(%o2) FALSE
(%i3) SOLVE([A1*s*h1 = U+(h2-h1)/r1,A2*s*h2 = (h1-h2)/r1-h2/r2],[h1,h2])
(%o3) [[h1:(A2*r1*r2*s+r2+r1)*U/(A1*A2*r1*r2*s^2+(A2*r2+A1*r2+A1*r1)*s+1),
h2:r2*U/(A1*A2*r1*r2*s^2+(A2*r2+A1*r2+A1*r1)*s+1)]]
(%i4) h11:EV(h1,[A1 = 1,A2 = 1,r1 = 0.5,r2 = 1/3],RATSIMP)
RAT replaced 0.83333333333333 by 5//6 = 0.83333333333333
RAT replaced 0.16666666666667 by 1//6 = 0.16666666666667
etc.
So the menu batch does not work in the new versions but the prompt batch
does.
Doug Stewart
Andrej Vodopivec wrote:
> Hi,
>
> this is a case sensitivity bug in xmaxima - it sends BATCH(file)
> instead of batch(file) if you select Batch File from menus.
>
> hth,
> Andrej
>
> Robert Dodier wrote:
>
>> On 9/28/05, Doug Stewart wrote:
>>
>>
>>
>>> 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.
>>>
>>
>>
>> doug, just a point of clarification, are you working with the
>> command line Maxima or the graphical user interface?
>>
>> another data point -- i copied the expressions into a file tank.mac
>> and executed batch ("tank.mac"); and that works OK in
>> maxima-5.9.1.9rc3 / gcl 2.6.7 (both command line and gui) on linux.
>>
>> thanks for the info,
>> robert dodier
>>
>> _______________________________________________
>> Maxima mailing list
>> Maxima@math.utexas.edu
>> http://www.math.utexas.edu/mailman/listinfo/maxima
>>
>>
>