cohomology(r,C)
This computes the reduced cohomology in degree r of the labeled cell complex. In particular, it constructs the co-chain complex by dualizing by the label ring, and takes the homology of that chain complex. As an example we can compute the cohomology of the wedge of two circles.
|
|
|
|
|
|
|
|
Or in a more interesting case, we have the cohomology over the integers of $\mathbb{RP}^3$.
|
|
|
|
|