Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

PLEASE USE MATLAB!!
WRITE IT AS A PROGRAM image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Sql++ For Sql Users A Tutorial

Authors: Don Chamberlin

1st Edition

0692184503, 978-0692184509

More Books

Students also viewed these Databases questions