[GAP Forum] running a file on GAP Terminal

Neha Gupta neha.gupta2008 at googlemail.com
Wed Jul 8 01:35:20 BST 2009


Dear GAP FORUM Members,

I have written a simple GAP file saved as saved at
"Users/neha/Documents/gap4r4/bin/test1.g " as follows:

local a;
a:=1;;
a:=a*10;
return a*a-8;

The GAP package precisely is saved at the same location. At the GAP terminal
when I type the following command :

gap>Read("./test1.g")();    OR

gap> Read("/test1.g")();   OR

gap> Read("test1.g")();   OR

gap> ReadAsFunction("./test1.g")() ;

 the following error is produced for the first three commands :

*Error, file "./test1.g" must exist and be readable called from
<function>( <arguments> ) called from read-eval-loop*.

and the following error is produced for the last command :

*<func> must be a function (not a boolean)*

Please suggest what is the appropriate command for running a file on GAP
Terminal. Or is it that I am using the wrong extension of the file ?
Please help.

Thanks,

Best
Neha


More information about the Forum mailing list