1. Engineering
  2. Mechanical Engineering
  3. c to approximate the function rzvg w e will use...

Question: c to approximate the function rzvg w e will use...

Question details

(c) To approximate the function r(z)-VG, w e will use the points (1,1) (4,2) and (9,3) i. Write the formula for the Lagrange Polynomial 2) that in- terpolates these three points. ii. Write a m function file that implements P2(x) using the MAT- LAB polynomial commands ii. To see how well the approximation is: Plot f and P2 in the interval [0.0 12 . Plot f - P2 in the interval 0.01 12 . Plot abs(J-לו)./f) in the interval 10.01 12. iv. Using the plots determine where the approximation is better/worse. v. Why do you get these results? Do they agree with the formula derived in class for the error bound? vi. Add the point (0,0) and repeat (a)-(c). Do you see any im- prov ement? Deterioration? Where? Why?

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution