Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using MATLAB 1.3 polyDiffm function [Dmf, Dm] polyDiffm(f, m) Input Description Coefficient vector for a general nth-degree poly- nomial f(x) (see below) Degree of derivative
Using MATLAB
1.3 polyDiffm function [Dmf, Dm] polyDiffm(f, m) Input Description Coefficient vector for a general nth-degree poly- nomial f(x) (see below) Degree of derivative to take on f(r Type (n+1) x1 1x1 double Output Dmf Dm Coefficient vector for f"(x) Differentiation matrix such that Dm fDmf (n+l)xl double (n+1)x (n+1) double Write a MATLAB function which finds the mth derivative of the general nth-degree poly- nomial f(x)aa22 +... + anx", as represented by its coefficient vector, = [a-0; a-1; a.2, ; a-n] (the length of f will be n + 1) Details The output, Dmf should also have length n+1, and should be the coefficient vector of the polynomial f"(r) . The output, Dm should be the mth derivative matrix, such that isequal (DMH, Dmf) evaluates to TRUE Hint: use your function polyDiff to solve thisStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started