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

563554 views
gap> START_TEST("HAP library");
gap> M:=ReadImageAsPureCubicalComplex(Concatenation(dir,"image2.1.1.eps"),600);
Pure cubical complex of dimension 2.

gap> C:=ChainComplex(M);
Chain complex of length 2 in characteristic 0 .

gap> EulerCharacteristic(C);
7
gap> STOP_TEST( "tst.tst", 1000 );