Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
| Download
GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
Project: cocalc-sagemath-dev-slelievre
Views: 418346#include <typedef.h>1#include <getput.h>2#include <matrix.h>3#include <base.h>456int INFO_LEVEL;7extern int SFLAG;89matrix_TYP *conjugated(bravais_TYP *G,bravais_TYP *H,10matrix_TYP **N,int Nanz,bahn **strong);111213main(int argc,char **argv){1415bravais_TYP *G,16*H,17*N;1819matrix_TYP **base,20*erg;2122bahn **strong;2324int i,25j,26l,27anz;2829char comment[1000];303132read_header(argc,argv);3334if ((is_option('h') && optionnumber('h')==0) || (FILEANZ < 3)){35printf("Usage: Conjugated file1 file2 file3\n");36printf("\n");37printf("file1: bravais_TYP containing the finite group G.\n");38printf("file2: bravais_TYP containing the finite group H.\n");39printf("file2: bravais_TYP containing the group N.\n");40printf("\n");41printf("The program checks whether there is an x in N with the\n");42printf("property that x H x^{-1} <= G, and returns this x if it\n");43printf("exists.\n");44printf("\n");45printf("WARNING: The program assumes that the orbit of H under N\n");46printf(" is finite.\n");47printf("\n");48if (is_option('h')){49exit(0);50}51else{52exit(31);53}54}5556INFO_LEVEL = optionnumber('h');5758if (INFO_LEVEL & 12){59SFLAG = 1;60}6162G = get_bravais(FILENAMES[0]);63H = get_bravais(FILENAMES[1]);64N = get_bravais(FILENAMES[2]);6566base = get_base(G);67strong = strong_generators(base,G,FALSE);6869erg = conjugated(G,H,N->gen,N->gen_no,strong);7071/* output */72if (erg != NULL){73sprintf(comment,"conjugated the group of %s INTO the group of %s",74FILENAMES[1],FILENAMES[0]);75put_mat(erg,NULL,comment,2);76free_mat(erg);77}78else{79printf("the groups are not conjugated under the group of %s\n",80FILENAMES[2]);81}828384free_bravais(G);85free_bravais(H);86free_bravais(N);87for (i=0;i<G->dim;i++){88free_mat(base[i]);89free_bahn(strong[i]);90free(strong[i]);91}92free(strong);93free(base);94if (INFO_LEVEL & 12){95pointer_statistics(0,0);96}9798exit(0);99100} /* main */101102103104