Answered step by step
Verified Expert Solution
Question
1 Approved Answer
HW6 p5 5. Interpolation Error Coding (15 pts) Code in MATLAB. In 220-08-Interpolation.pdf on slide 5 we have a general formula for calculating the error
HW6 p5
5. Interpolation Error Coding (15 pts) Code in MATLAB. In "220-08-Interpolation.pdf" on slide 5 we have a general formula for calculating the error of an nh order polynomial approximation of some function f(x): where zk are the sample points, and z is the location where you wish to evaluate your polynonial. On slide 6,f(x) = e-z/21s sampled at x = [1.1, 2, 3.5, 5, 7.1] Use a root-solving technique on each interval to find the x-value which maximizes the error in that interval. The symbolic toolbox may be helpful here as well as the functions diff ( ) and matlabFunction( ), but you can solve this any way you like. Use ??- le-5 as your error tolerance. Give the four values you estimatedStep 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