Work in teams of four to create an m-file that: (Criteria 1) solves a physical or engineering differentiation/integration problem. There must be utility to the m-file. (Criteria 2) The file must also contain one of the following:
1) For loop
2) Nested for loop 3) While loop
(Criteria 3) The code must also compute the error in the approximate solution and displays a 2D plot of the error vs. step
size (h).
(Criteria 4) Explain the code by using (% - for comments for main steps).
(Criteria 5) The user must input the values to get desired outcome.
For instance, if it is a numerical integration solution, then the user
may enter the constants or the points of definite integral (a and b).