Dear GAP's family,
Look at these commands in the interactive mode:
gap> x:=X(Rationals);x.name:="x"; x "x" gap> Galois(x^5-110*x^3-55*x^2+2310*x+979); 1 gap> TransitiveGroup(5,1); 5 = C(5)
Very nice! Put it in a file say "gal-1.p", one need to type
x:=X(Rationals);x.name:="x"; Print("x:=X(Rationals);x.name:='x'; \n\n"); Print("Galois(x^5-110*x^3-55*x^2+2310*x+979); \n"); Print(Galois(x^5-110*x^3-55*x^2+2310*x+979), "\n\n"); Print("TransitiveGroup(5,1); \n"); Print(TransitiveGroup(5,1),"\n\n");
and type
gap> Read("gal-1.p");
to run it. It needs a lot of extra typing!
Being a user of IBM PC for years, I still have no idea of using I/O
redirection to make "Read("gal-1.gap")" output something to the screen
without using "Print".
What is in my mind is the batch file feature (with echo on/off) of
MS-DOS so then I may use "LogTo" or "LogInputTo" to achieve the purpose
easily. Will "Read" get some extra switches in the future?
-><- The release of GAP 3.4 of July/94 brings the birth of Chapter 16 Algebraic Extensions, but there is only a few discussions up to now. -><-
Thanks & Bye.