On Mon, 10 Nov 2003, Billinghurst, David (CALCRTS) wrote:
> > From: Peter Ulrich Kruppa
> > Subject: batch files ???
> >
> >
> > I don't understand the part in the documentation about batch
> > files. What I am actually looking for is this:
> > 1) I type a file, let's call it session.bat containing lines like
> > these:
> > (c1) 5 + 3;
> > (c2) c1 - 3;
> > (c3) c2*2;
> >
> > ...
>
> Create a file session.mac containing the following
>
> a:5+3;
> b:a-3;
> c:b*2;
>
> then within maxima
>
> batch("session.mac");
>
> and continue working
> (C1) batch("session.mac");
>
> batching /usr/people/billingd/session.mac
> (C2) a : 3 + 5
> (D2) 8
> (C3) b : a - 3
> (D3) 5
> (C4) c : b 2
> (D4) 10
> (C5) c+3;
> (D5) 13
Yes, this one works. But there isn't any chance to refer to
previous lines - % only calls the last line - is there?
Perhaps one can set some sort of marks or variables?
Regards,
Uli.
>
> _______________________________________________
> Maxima mailing list
> Maxima@www.math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>
+-------------------------+
| Peter Ulrich Kruppa |
| - Wuppertal - |
| Germany |
+-------------------------+