integrate abs(sin(x)-cos(2x)) from x=0 to pi