consider the integral [cos(x^3)dx,0,0.5]. Approximating it by the Midpoint Rule with n equal subintervals, give an estimate for n which guarantees that the error is bounded by 1/10^4

I get n=8

with integral value = 0.4995

wolframalpha says its actually 0.499442