integrate (1+cos(x))dx from x=0 to pi