Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it

563648 views
1
#include "defs.h"
2
3
# define NPT 32767
4
# define MXP 501
5
# define MNB 80
6
/* MXP-1 = max no of perms. */
7
8
char inf[80],inf2[80],outf[80],full,stabcall;
9
/* defaults inf gpname.outperm
10
outf gpname.sg
11
*/
12
short perm[(MXP-1)*(NPT+1)], sv2[(MNB-1)*NPT],cp[1],orb[NPT+1],base[MNB],
13
lorb[MNB],fixpt[MNB+1],fixb[MXP],pno[MXP],*pptr[MXP],*svptr[MNB],
14
mnpt=NPT,mp=MXP-1,mb=MNB-1;
15
16
int
17
main (int argc, char *argv[])
18
{ short arg; char err,c;
19
stabcall=err=0; arg=1; full=0; if (argc<=arg) {err=1; goto error;}
20
while (argv[arg][0]=='-')
21
{ if ((c=argv[arg][1])=='f') full=1;
22
else if (c=='s') stabcall=1;
23
else {err=1; goto error;}
24
arg++; if (argc<=arg) {err=1; goto error;}
25
}
26
strcpy(inf,argv[arg]); strcat(inf,"."); strcpy(outf,inf); strcpy(inf2,inf);
27
arg++; if (argc<=arg) strcat(inf,"outperm"); else strcat(inf,argv[arg]);
28
if (full)
29
{ arg++; if (argc<=arg) strcat(inf2,"inperm"); else strcat(inf2,argv[arg]);}
30
arg++; if (argc<=arg) strcat(outf,"sg"); else strcat(outf,argv[arg]);
31
if (egprog()== -1) exit(1);
32
error:
33
if (err)
34
{ fprintf(stderr,
35
"Usage: egrun [-s] [-f] gpname [inf] (if -f [inf2]) [outf].\n");
36
exit(1);
37
}
38
exit(0);
39
}
40
41