CoCalc
Sharedsupport / 2014-11-30-homology.sagewsOpen in CoCalc

Examples for support purposes...

D = ChainComplex({0: identity_matrix(ZZ, 4), 4: identity_matrix(ZZ, 30)})
H = D.homology()
H
{}
H.get(2,0)
0
v = {1:5, 2:3}
v.get(1,0)
5
v.get(7,0)
0