-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathread.g
57 lines (49 loc) · 1.86 KB
/
read.g
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#############################################################################
##
#W read.g Alnuth - ALgebraic NUmber THeory Bettina Eick
## Andreas Distler
##
## The files with GAP code are read here and global variables are defined.
## Note that in Alnuth we cannot do this in completely arbitrary order.
## Globals used in code should be known to avoid warnings.
##
#############################################################################
##
#R alnuth global variables
##
# the directory path to the code files for the external program
if not IsBound( AL_PATH ) then
BindGlobal( "AL_PATH", DirectoriesPackageLibrary("alnuth", "gp"));
fi;
# options for execution of the external program
if not IsBound( AL_OPTIONS ) then
BindGlobal( "AL_OPTIONS", ["-f", "-q"] );
fi;
# extra option to specify stack size for execution of PARI/GP
if not IsBound( AL_STACKSIZE ) then
BindGlobal( "AL_STACKSIZE", "-s128M" );
fi;
# number of trials to find a primitve element with small minimal polynomial
if not IsBound( PRIM_TEST ) then
PRIM_TEST := 20;
fi;
#############################################################################
##
#R read files
##
ReadPackage("alnuth", "defs.g");
ReadPackage("alnuth", "gap/setup.gi");
ReadPackage("alnuth", "gap/pari.gi");
ReadPackage("alnuth", "gap/factors.gi");
ReadPackage("alnuth", "gap/matfield.gi");
ReadPackage("alnuth", "gap/polfield.gi");
ReadPackage("alnuth", "gap/field.gi");
ReadPackage("alnuth", "gap/unithom.gi");
ReadPackage("alnuth", "gap/matunits.gi");
ReadPackage("alnuth", "gap/rels.gi");
ReadPackage("alnuth", "gap/present.gi");
ReadPackage("alnuth", "gap/isom.gi");
ReadPackage("alnuth", "gap/rationals.gi");
ReadPackage("alnuth", "exam/unimod.gi");
ReadPackage("alnuth", "exam/rationals.gi");
ReadPackage("alnuth", "exam/fields.gi");