Calculate the area between y = cos x and the x -axis on [0, pi]