Write structuredly with comments, clearly, legibly, and briefly!
Show the working of your procedures for the test cases!
I = (h/3)[y0+4y1+2y2+4y3+2y4+... +2yn-2+4yn-1+yn]where h=(b-a)/n, for some even integer n, and yk= f(a+hk). (Increasing n increases the accuracy of the approximation.) Define a procedure that takes as arguments f,a,b,n and returns the value of the integral, computed using Simpson's Rule. Rewrite I and use accum. Test case: f(x)=x in [0,1] for n=4
(define sq (make-monitored sqrt)) >>> (sq 100) 10 >>> (sq 'how-many-calls?) 1 >>> (sq 'reset-count) 0Write a procedure for accomplishing this. Test case: case above.