Let's make a chain complex.
i1 : R = ZZ/101[x,y,z]; |
i2 : C = res coker matrix {{x,y^2,z^3}}; |
Some simple functions for discovering the shape of C.
i3 : length C |
i4 : max C |
i5 : min C |
In order to see the matrices of the differential maps in a chain complex, examine C.dd.
i6 : C.dd |
If C is a chain complex, then C_i will produce the i-th module in the complex, C^i will produce the -i-th module in it, and C.dd_i will produce the differential whose source is C_i.
i7 : C_1 |
i8 : C^-1 |
i9 : C.dd_2 |
The function betti can be used to display the ranks of the free modules in C, together with the distribution of the basis elements by degree, at least for resolutions of homgeneous modules.
i10 : betti C |
The ranks are displayed in the top row, and below that in row i column j is displayed the number of basis elements of degree i+j in C_j.