Question

In: Physics

Consider the following polynomial ?(?)=(?+2)(?−10)(?+4)(?−2) a)Use Matlab to multiply these terms in order to form a...

Consider the following polynomial

?(?)=(?+2)(?−10)(?+4)(?−2)

a)Use Matlab to multiply these terms in order to form a 4thorder polynomial

b)Apply the ‘roots’ function to your answer in part a to verify your calculation was correct.

c)Use Matlab to divide your polynomial answer in part aby the term (s+2

)d)Apply ‘roots’ to your answer in part c to verify your calculation was correct.

Solutions

Expert Solution

a)

syms s

d=s-2;

c=s+2;

b=s+4;

a=s-10;

p= expand(a*b*c*d)

disp("This is the 4th order function")

Output -

p =

s^4 - 6*s^3 - 44*s^2 + 24*s + 160

b)

P=[1 -6 -44 24 160];

disp("The roots are")

r=roots(P)

Output -

The roots are

r =

10.0000
2.0000
-4.0000
-2.0000

c)

syms s

p=(s^4)-6*(s^3)-44*(s^2)+24*s+160;

d=(s+2);

vars=[s];

[r,q]= polynomialReduce(p,d,vars)

disp("This is the reduced polynomial")

Output -


r =

0


q =

s^3 - 8*s^2 - 28*s + 80

This is the reduced polynomial

Here denotes the remainder and q the quotient that is the reduced polynomial.

d)

q=[1 -8 -28 80]

R=roots(q)

disp("Hence the same roots are obtained")

Output -

R =

10.0000
-4.0000
2.0000

Hence the same roots are obtained

I hope my answer helps. Have a nice day


Related Solutions

Consider the following real 3rd order polynomial f (x)= x^3− 5.5 x^2− 5x+ 37.5 A) Use...
Consider the following real 3rd order polynomial f (x)= x^3− 5.5 x^2− 5x+ 37.5 A) Use the bisection method to determine one of the roots, employing initial guesses of xl = - 10, xu = -1, and a stopping criterion εs=12% . B) Use the false position method to determine a root, employing initial guesses of xl = - 1, xu = 4, and a stopping criterion εs=3%. Was this method the best for these initial guesses? C) Use the...
A Trigonometric Polynomial of order n is a function of the form: ?(?) = ?0 +...
A Trigonometric Polynomial of order n is a function of the form: ?(?) = ?0 + ?1 cos ? + ?1 sin ? + ?3 cos(2?) + ?2sin(2?) + ⋯ + ?ncos(??) + ?nsin (??) 1) Show that the set {1, cos ? , sin ? , cos(2?) , sin(2?)} is a basis for the vector space ?2 = {?(?) | ?(?)?? ? ????????????? ?????????? ?? ????? ≤ 2} < ?, ? > = ∫ ?(?)?(?)?? defines an inner-product on...
Consider the polynomial f(x) = 3x 3 + 5x 2 − 58x − 40. Using MATLAB....
Consider the polynomial f(x) = 3x 3 + 5x 2 − 58x − 40. Using MATLAB. Find the three roots of the polynomial, i.e, x where f(x) = 0, using Newton’s method. Report the number of iterations taken by each algorithm using a tolerance of 10−8 .
Using MATLAB, Consider the polynomial f(x) = 3x^3 + 5x^2 − 58x − 40. Find the...
Using MATLAB, Consider the polynomial f(x) = 3x^3 + 5x^2 − 58x − 40. Find the three roots of the polynomial, i.e, x where f(x) = 0, using: (i) Bisection method, and (ii) Newton’s method. Report the number of iterations taken by each algorithm using a tolerance of 10^−8 .
example with solution MATLAB 4 order
example with solution MATLAB 4 order
Multiply this permutation: (1 3 2)(1 4 2)
Multiply this permutation: (1 3 2)(1 4 2)
Use MuPAD to solve the polynomial equation x3 + 8x2 + ax + 10 = 0 for x in terms of the parameter a,
Use MuPAD to solve the polynomial equation x3 + 8x2 + ax + 10 = 0 for x in terms of the parameter a, and evaluate your solution for the case a = 17. Use MuPAD to check the answer.
(a) [10%] Determine the polynomial interpolant to the data t 1 2 3 4 y 11...
(a) [10%] Determine the polynomial interpolant to the data t 1 2 3 4 y 11 29 65 125 using the monomial basis. (b) [10%] Determine the Lagrange polynomial interpolant to the same data and show that the resulting polynomial is equivalent to that obtained in part (a). (c) [30%] Compute the Newton polynomial interpolant to the same data using each of the three methods discussed in class (triangular matrix, incremental interpolation, and divided differences) and show that each produces...
Using MATLAB: Consider the following Boundary Value Differential Equation: y''+4y=0 y(0)=-2 y(π/4)=10 Which has the exact...
Using MATLAB: Consider the following Boundary Value Differential Equation: y''+4y=0 y(0)=-2 y(π/4)=10 Which has the exact solution: y(x)= -2cos(2x)+10sin(2x) Create a program that will allow the user to input the step size (in x), and two guesses for y'(0). The program will then use the Euler method along with the shooting method to solve this problem. The program should give the true error at y(π/8). Run your code with step sizes of π/400 and π/4000 and compare the errors. Chose...
** NEED MATLAB** design a cam with harmonic and cycloidal rise and 3-4-5 polynomial fall specifications:...
** NEED MATLAB** design a cam with harmonic and cycloidal rise and 3-4-5 polynomial fall specifications: *Cycloidal rise (0◦ < θ < 80◦) from 0 mm to 20 mm *Dwell (80◦ < θ < 100◦) *Harmonic rise (100◦ < θ < 180◦) from 20 mm to 30 mm *Dwell (180◦ < θ < 210◦) *3-4-5 Polynomial fall (210◦ < θ < 300◦) from 30 mm to 0 mm *Dwell (300◦ < θ < 360◦) •the radius of the base circle...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT