Write a user-defined function with function call I Midpoint_Comp (f, a, b, n) that uses the midpoint strategy of the rectangular rule to estimate the value of the integral of f from a to b using n subintervals, and f is an anonymous function representing the integrand. Then apply Midpoint_Comp to estimate the value of
4
∫ sin x/x dx, n=20
1
Find the actual value of the integral using the int command and calculate the % relative error for the estimate.