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: 418346
#(C) Graham Ellis, 2005-2006

#####################################################################
#InstallGlobalFunction(Cohomology,

InstallMethod(Cohomology,"cohomology calculations",
[IsHapCochain, IsInt],0,

function(X,N)

if EvaluateProperty(X,"characteristic")=0 then
return IntegralCohomology(X,N); 
fi;

if      IsPrimeInt(EvaluateProperty(X,"characteristic"))
        or (EvaluateProperty(X,"characteristic")=-1/2
        and
        EvaluateProperty(X,"type")="cochainComplex")
	then
        return ModularCohomology(X,N);
	else
        Print("Induced morphisms in modular or rational homology are not yet implemented\n");
        return fail;
	fi;
end );
#####################################################################