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
InstallGlobalFunction(EquivariantEulerCharacteristic,
function(C)

local N,i,j,t;

N:=0;
while C!.dimension(N)>0 do
    N:=N+1;
od;
N:=N-1;
t:=0;
for i in [0..N] do
    for j in [1..C!.dimension(i)] do
        t:=t+(-1)^i*(1/Size(C!.stabilizer(i,j)));
    od;
od;

return t;
end);