Problem
Write a user-defined Python function that uses the Simpson's 3/8 method for integration of a function f(x) that is given in analytical form. For the function name and arguments use def simpson38(Fun, a, b). Fun is a name for the function that is being integrated. It is a dummy name for the function that is imported into Simpson38. The actual function that is integrated should be written as an anonymous function. It is entered as a function handle when Simpson38 is used. a and b are the limits of integration and use I as the value of the integral sum in your code. The integration function calculates the value of the integral in iterations. In the first iteration the interval [3, b] is divided into three subintervals. In every iteration that follows, the number of subintervals is doubled. The iterations stop when the difference in the value of the integral between two successive iterations is smaller than 0.1%. Use the previous problem to test your function. Indicate the step size, h, that was used to achieve your solution.