cone f -- produce the mapping cone of a map f of chain complexes
i1 : R = ZZ/101[x,y,z] |
i2 : m = image vars R |
i3 : m2 = image symmetricPower(2,vars R) |
i4 : M = R^1/m2 |
i5 : N = R^1/m |
i6 : C = cone extend(resolution N,resolution M,id_(R^1)) |
Let's check that the homology is correct. HH_0 should be 0.
i7 : prune HH_0 C |
HH_1 should be isomorphic to m/m2.
i8 : prune HH_1 C |
i9 : prune (m/m2) |
Ways to use cone :