110.5 points) Write some Matlab commands to form the derivative of the polynomia
ID: 3829719 • Letter: 1
Question
110.5 points) Write some Matlab commands to form the derivative of the polynomial function F(xa 2a- Another polynomial function such as G(t) will be obtained. polyder(F) polyder(F) F [-1 2-1 o] polyder(F) o F-1, 2-1 0) polyint (F) Question 12 35 points) write a Matlab command to calculate the integral of the function p(xp 7x4+ x -3 -5. Consider the constant of integration as 2. You should get something like h(x) which is in fact another polynomial. o p 17 -3 01 -51 h poly int (p.2) p 17 1-3-5] h polyder(p.2) p 17-3 1-51 h poly int(p) h diff(p.2) write a Matlab command to calculate the integral of the function f (x) 3xS. x2 +2x +5. Consider the constant of integration as -1. You should get something like f20) which is in fact another polynomial. f1-13 125] f2 poly int (fi.2) o 1-1312 5] polyint (fi) f1 13 01 251 f2- int (1,2) e fl 13 00 125] f2 poly int(f1, 2)Explanation / Answer
1.
The answer is c.
Equation 2x2-x3-x can be re-written as -x3 + 2x2 -x + 0. It's coefficient are represented as [-1 2 -1 0]. polyder(F) differentiates the given equation
F = [-1 2 -1 0];
polyder(F)
-------------------------------------------------------------------------------------------------------------
2.
The answer is a.
Coefficients of 7x4-3x3+x-5 are represented as [7 -3 0 1 -5]. polyint(p,x) find outs the integration of P at constant value x.
p = [7 -3 0 1 -5];
h = polyint(p,2)
-------------------------------------------------------------------------------------------------------------
2.
The answer is d.
Coefficients of 3x5+x2+2x+5 are represented as [3 0 0 1 2 5]. polyint(p,x) find outs the integration of P at constant value x.
f1 = [3 0 0 1 2 5];
f2 = polyint(f1,2);
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.