Question
Please help me on the following : For Project 1, you will develop a suite of MATLAB functions to solve a variety of problems related
Please help me on the following :
For Project 1, you will develop a suite of MATLAB functions to solve a variety of problems related to one of the numerical integration.
Numerical Integration:
Explore numerical integration methods of a single-valued function of one variable (or more) by using a consistent interface (handle, bounds, number) to implement solutions.
Features
Integration methods : I am choosing the midpoint from the given integration methods. The feature levels are
- Basic : A function for each of the stated numerical integration methods.
- Proficient : An additional output argument is returned -- the error estimate.
- Advanced : Additionally, one method is extended in an additional function with a similar interface which can integrate single-valued functions of any number of variables.
Make sure to write at least one of your integration functions in a way that demonstrates for loops, and another in a way that demonstrates the use of vectorized calculations.
Unit Tests
Testing is expected to be conducted on each feature function using a variety of techniques (by hand, limiting behavior, symmetry) in order to fully ensure expected behavior. Proficient-level projects will necessarily have more tests to cover the additional answers of each feature function. Grouping tests into files by feature-function is encouraged. Tests are expected to use the format indicated in class and the LL book.
Graphing
Implement at least two graphing functions:
- Takes arguments for integrand function handle, limits, NNN, method handle, and constructs a geometric illustration of the method
- Takes argument of integrand function handle, limits, and known result, and compares convergence of all four methods by NNN, or alternatively, computation time by precision.
Make sure to keep the calculations of the points you intend to display in a separate function from the plotting code! Also, remember to display appropriate axis labels, titles, legends, and informational lables.
Demonstrations
Write three short demo functions which drive specific calls to your graphing functions.
Documentation
- Write a file README.md giving an overview of your project, include theory and links to documentation.
- Write a file 'functionName.md' for each non-test function in your project which documents its behavior.
Use the syntax provided by GitLab Markdown and the conventions of the Mathworks online documentation in formatting your own.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started