H = homology(n, M)This is the per-degree homology: the differential d_n : M_n -> M_{n-1} is built via moduleDifferential, and H_n(M) is obtained by applying the built-in M2 homology method to the adjacent pair (d_n, d_{n+1}). The resulting module lives over A.ring; use prune(Module) to minimize the presentation.
Because DGSubmodule is a subtype of DGModule, this method also handles DG submodules directly.
|
|
|
|
|
|
For the Koszul complex on a regular sequence, only H_0 = R/(x,y,z) is nonzero; this recovers the standard fact.
|
|
|
|
|
|
|
The source of this document is in /build/reproducible-path/macaulay2-1.26.05+ds/M2/Macaulay2/packages/DGAlgebras/doc.m2:4241:0.