batch("gravity.bat");
batching #pC:/Documents and Settings/doug/Desktop/gravity.bat
(%i2) LOAD(dimension.mac)
(%o2) C:/PROGRA~1/MAXIMA~1.1/share/maxima/5.9.1/share/physics/dimension.mac
(%i3) fundamental_dimensions
(%o3) [mass, length, time]
length
(%i4) gput(g, ------, dimension)
2
time
(%i5) gput(t, time, dimension)
(%i6) velocity : INTEGRATE(g, t)
(%o6) g t
(%i7) dimension(velocity)
(%o7) dimension(g) dimension(t)
(%i8) position : INTEGRATE(velocity, t)
2
g t
(%o8) ----
2
(%i9) dimension(position)
2
(%o9) dimension(g) dimension (t)
(%i10) pos5 : EV(position, t = 5, g = 32)
(%o10) 400
(%i11) sp5 : EV(velocity, g = 32, t = 5)
(%o11) 160
sp5 3600
(%i12) sp5m : --------
5280
1200
(%o12) ----
11
(%i13) FLOAT(sp5m)
(%o13) 109.0909090909091
(%i14)
why is %o7 and %o9 not displayed as final resuls ?
Page 110 of "the maxima book" shows the output as:
length
______
time
ect.
here is the batch file:
load("dimension.mac");
fundamental_dimensions;
/* let g be the acceleration due to gravity */
gput(g,"length"/"time"^2,dimension)$
gput(t,"time",dimension)$
velocity:integrate(g,t);
dimension(velocity);
position:integrate(velocity,t);
dimension(position);
pos5:ev(position,t=5,g=32);
/* feet */
sp5:ev(velocity,g=32,t=5);
/* feet per second */
sp5m:sp5*3600/5280;
/* miles per hour */
float(sp5m);