
Show transcribed image text Challenge: Write a function that performs integration, using the 1/3rd rule, on a set of data provided in a list. Assume the data is equally spaced at Δx and the list holds the corresponding y data. As a test integrate the data Δx = 0.10 , y = [1, 3, 4, 2, 4, 8, 10, 10, 12, 9,8]. Your function should work for any data set. You will have to adjust for the fact that the 1/3 rule requires an even number of partitions. One approach is to integrate as much of the data as possible using the 1/3rd rule, and then use trapezoid rule for the rest of the data.
Challenge: Write a function that performs integration, using the 1/3rd rule, on a set of data provided in a list. Assume the data is equally spaced at Δx and the list holds the corresponding y data. As a test integrate the data Δx = 0.10 , y = [1, 3, 4, 2, 4, 8, 10, 10, 12, 9,8]. Your function should work for any data set. You will have to adjust for the fact that the 1/3 rule requires an even number of partitions. One approach is to integrate as much of the data as possible using the 1/3rd rule, and then use trapezoid rule for the rest of the data.





