CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In

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

Views: 418384
1
N:=100;
2
3
A:=NullMat(N,N);;
4
A:=List([1..N],i->StructuralCopy(A));;
5
A[Int(N/2)][Int(N/2)][Int(N/2)]:=1;
6
7
M:=PureCubicalComplex(A*0);;
8
B2:=PureCubicalComplex(A);
9
10
for i in [1..Int(N/2)-1] do
11
B1:=B2;
12
B2:=ThickenedPureComplex(B1);
13
S:=PureComplexDifference(B2,B1);
14
if IsOddInt(i) then
15
M:=PureComplexUnion(M,S);
16
fi;
17
od;
18
19
for i in [2..Int(N/2)-1] do
20
M!.binaryArray[Int(N/2)][Int(N/2)][i]:=1;
21
od;
22
23