integrate 1/2 * sin(pi * x / 2) from -2 to 0