Question: PLEASE USE MATLAB!! WRITE IT AS A PROGRAM 3. Write a program to evaluate a polynomial p(x)=cnxn+cn1xn1++c2x2+c1x+c0 and its derivative at a given point t.
3. Write a program to evaluate a polynomial p(x)=cnxn+cn1xn1++c2x2+c1x+c0 and its derivative at a given point t. The input is the row vector c of coefficients of the polynomial arranged from highest to lowest power, and the number t, and the two outputs are p(t) and p(t). Compute p(t) by first computing the row vctor [tn,tn1,,t2,t,1] and combine that with the vector c to get the result. Compute p(t) by computing the coefficients of the derivative polynomial from the vector c, and then evaluating that polynomial in the same way. Include some tests that provide evidence that your code produces the correct results
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
