GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
#include "typedef.h"1#include "matrix.h"2#include "symm.h"3#include "getput.h"4#include "bravais.h"5#include "sort.h"6#include "polyeder.h"7#include "presentation.h"8#include "tools.h"9#include "tietzetrans.h"10#include "datei.h"1112extern int SFLAG;1314int main (int argc, char *argv[])15{16bravais_TYP *G;17matrix_TYP *vec;18matrix_TYP *Form;19polyeder_TYP *Pol;2021extern polyeder_TYP *fub();2223read_header(argc, argv);24if(FILEANZ != 3)25{26printf("\n");27printf("Usage\n");28printf(" %s file1 file2 file3 \n", argv[0]);29printf(" \n");30printf(" where file1 contains a bravais_TYP describing\n");31printf(" a set of affine matrices generating a space group.\n");32printf(" \n");33printf(" where file2 contains a matrix_TYP describing\n");34printf(" an affine vector which is a starting point for the algorithm\n");35printf(" \n");36printf(" where file3 contains a matrix_TYP describing a positive definite,\n");37printf(" invariant form for R \n");38printf(" \n");39printf(" Calculates a fundamental polyhedron for the group in file1,\n");40printf(" and writes it to the stdout.\n");4142printf(" \n");43printf(" The options are:\n");44printf("\n");45printf(" -h : Gives you this help.\n");46printf("\n");4748if (is_option('h')){49exit(0);50}51else{52exit(31);53}54}5556/* setting SFALG according to optionnumber('h') */57if (is_option('h') && optionnumber('h') == 8){58SFLAG = 1;59}6061G = get_bravais(FILENAMES[0]);62vec = get_mat(FILENAMES[1]);63Form = get_mat(FILENAMES[2]);6465Pol = fub(vec, G, Form);6667put_polyeder(Pol);68free_polyeder(Pol);6970free_bravais(G);71free_mat(vec); vec = NULL;72free_mat(Form); Form = NULL;7374if (SFLAG == 1){75pointer_statistics(0,0);76}77printf("\n");78}798081