generalize calculation of wedge cohomology