Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Help with MATLAB coding exercise. Derivatives of Polynomials Implement a function base on the complete Horner's method that returns the kth derivative of a polynomial

Help with MATLAB coding exercise.

image text in transcribedimage text in transcribed

Derivatives of Polynomials Implement a function base on the complete Horner's method that returns the kth derivative of a polynomial evaluated at a given position p(k)(z0) Your function should accept the following inputs: a - vector containing the coefficients of the polynmial of degree n, of size 1 by (n+1), where the coefficients of the polynomial are listed from lowest order to highest order. For example, p(z)=1/2+z+2z2+3z3 is represented by a=[1/2,1,2,3] z0 - where the appropriate derivative will be computed. k - the order of the derivative to compute, where k bigger than or equal to 0 . (The 0th derivative is just the function itself) Your function should return the following output: w - The value of the kth derivative at z0. \begin{tabular}{r|r} 1 & function w= poly_diff (a,z0,k) \\ 2 & a= horner_complete (a,z0); \\ 3 & o \\ 4 & how do Taylor coefficients at z0 give me derivative information at z0? \\ 5 & \%-insert code here- \\ 6 & end \\ 7 & \\ 8 & function a= horner_complete (a,z0) \\ 9 & ginsert your horner code here- \\ 10 & gin -ing \\ 11 & end \end{tabular} Code to call your function

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

Database Processing

Authors: David Kroenke

11th Edition

0132302675, 9780132302678

More Books

Students also viewed these Databases questions

Question

Describe the components of a job description.

Answered: 1 week ago