Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Can anyone create a matlab function for solving the following in the image? My p

ID: 3590588 • Letter: C

Question

Can anyone create a matlab function for solving the following in the image? My professor wants for us to solve by creating functions to just change variables instead of doing it by hand. A script works just as well, thanks!! :)


This problem is Chapra 4.9 in the Applied Numerical Methods with Matlab 3rd Ed

functiono Do you expect to have difficulties evaluating this at x = 0.577? chopping. 4.9 (a) Evaluate the polynomial Compute the mation. Disc it using 3-and 4-digit arithmetic with 4.16 U of O(h) and estimate the Prob. 4.13. E turn b y=x3-7x2 +8x-0.35 0.25. enty the percent relative error. (b) Repeat (a) but express y as derivative. I der term of t 4.17 Usea estimate the Prob. 4.13. of 0.2 value of the grosi nder y = ((x-7)x + 8)x-0.35 Evaluate the error and compare with part (a). 4.10 The following infinite series can be used to approxi- mate e

Explanation / Answer

Function file

function ans = evalPolynomial(p,x)
ans = polyval(p,x);

Test file

p = [1 -7 8 -0.35 ];

x = [1.35];

Ans:

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote