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

563582 views
1
#include"typedef.h"
2
#include"getput.h"
3
#include"bravais.h"
4
#include"symm.h"
5
6
7
int INFO_LEVEL;
8
extern int SFLAG;
9
10
main (int argc, char *argv[])
11
{
12
13
bravais_TYP *G,
14
*H;
15
16
char comment[1000];
17
18
read_header(argc, argv);
19
if ((FILEANZ != 1) || (is_option('h') && optionnumber('h') ==0)){
20
printf("Usage: %s 'file'\n",argv[0]);
21
printf("\n");
22
printf("file: bravais_TYP containing the finite unimodular group G.\n");
23
printf("\n");
24
printf("Calculates generators of the Bravais group B(G) of G. If \n");
25
printf("the space of G-invariant quadratic forms is given in 'file',\n");
26
printf("it relies on its correctness and echoes it in the \n");
27
printf("output. Otherwise it is calculated as well.\n");
28
printf("\n");
29
printf("Cf. Aut_grp (for forms without a group in file).\n");
30
if (is_option('h')){
31
exit(0);
32
}
33
else{
34
exit(31);
35
}
36
}
37
38
INFO_LEVEL = optionnumber('h');
39
if (INFO_LEVEL & 12){
40
SFLAG = 1;
41
}
42
43
G = get_bravais(FILENAMES[0]);
44
45
H = bravais_group(G,FALSE);
46
47
sprintf(comment,"bravais group to %s",FILENAMES[0]);
48
put_bravais(H,NULL,comment);
49
50
free_bravais(G);
51
free_bravais(H);
52
53
if (INFO_LEVEL & 12){
54
pointer_statistics(0,0);
55
}
56
exit(0);
57
}
58
59