integrate using midpoint method sin(x)/(x^2 + 1) from 0 to pi