Given the Pair of Polynomials: Pair 1: f(x)=x4-8x³-9x-6 g(x)=x³+x²-3x+1 Pair 2: h(x)=3x4-8x³-37x²+2x+4 p(x)=2x³+3x² - 2x+5 1.Add, subtract, multiply, and divide each pair of polynomials 2. Multiply the four polynomials by 4, 5, 6, and 7, in that order 3. Find the roots of each four given polynomials 4. Use the results of part 3 to find the polynomial coefficients from the given roots 5. Evaluate the four polynomials at the point x =1, 3, 5, and -2 Note: Use for separating elements ex. a = [1 2 3 4]

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Answer the blank:

 

IN MATLAB

Given the Pair of Polynomials:
Pair 1:
f(x)=x4-8x³-9x-6
g(x)=x³+x²-3x+1
Pair 2:
h(x)=3x4-8x³-37x²+2x+4
p(x)=2x³+3x² - 2x+5
1.Add, subtract, multiply, and divide each pair of polynomials
2. Multiply the four polynomials by 4, 5, 6, and 7, in that order
3. Find the roots of each four given polynomials
4. Use the results of part 3 to find the polynomial coefficients from the given roots
5. Evaluate the four polynomials at the point x =1, 3, 5, and -2
Note: Use <space> for separating elements
ex. a [1 2 3 4]
--Pair 1--
---do not forget to include brackets
f = Blank 1;
-----coeffs of polynomial f
g = Blank 2;
-----coeffs of polynomial g (for add, sub,multi)
gl = Blank 3; -----coeffs of polynomial g (for division)
--Pair 2--
---do not forget to include brackets
h = Blank 4; -----coeffs of polynomial h
p = Blank 5;
-----coeffs of polynomial p (for add, sub, mult)
pl = Blank 6; -----coefficients of polynomial p (for division)
Add, Subtract, Multiply, and divide each pair of polynomials
Pair 1
fgadd Blank 7
add f and g
fgsub = Blank 8 sub f and g
fgmul = Blank 9 (f, g)
fgdiv = Blank 10 (f, Blank 11)
Transcribed Image Text:Given the Pair of Polynomials: Pair 1: f(x)=x4-8x³-9x-6 g(x)=x³+x²-3x+1 Pair 2: h(x)=3x4-8x³-37x²+2x+4 p(x)=2x³+3x² - 2x+5 1.Add, subtract, multiply, and divide each pair of polynomials 2. Multiply the four polynomials by 4, 5, 6, and 7, in that order 3. Find the roots of each four given polynomials 4. Use the results of part 3 to find the polynomial coefficients from the given roots 5. Evaluate the four polynomials at the point x =1, 3, 5, and -2 Note: Use <space> for separating elements ex. a [1 2 3 4] --Pair 1-- ---do not forget to include brackets f = Blank 1; -----coeffs of polynomial f g = Blank 2; -----coeffs of polynomial g (for add, sub,multi) gl = Blank 3; -----coeffs of polynomial g (for division) --Pair 2-- ---do not forget to include brackets h = Blank 4; -----coeffs of polynomial h p = Blank 5; -----coeffs of polynomial p (for add, sub, mult) pl = Blank 6; -----coefficients of polynomial p (for division) Add, Subtract, Multiply, and divide each pair of polynomials Pair 1 fgadd Blank 7 add f and g fgsub = Blank 8 sub f and g fgmul = Blank 9 (f, g) fgdiv = Blank 10 (f, Blank 11)
Pair 2
hpadd Blank 12 add h and p
hpsub = Blank 13 sub h and p
hpmul = conv (Blank 14, p)
hpdiv = Blank 15, pl)
Multiply the four polynomials by 4, 5, 6, and 7, in that order
s = Blank 16; & scalar values 4 5 6 7 (bonus blank)
must be 14;5; 6;7| but BBL cannot recognize the semi-colon and brackets here
just use 4 567
sf Blank 17 s*Blank 18
sg=s*Blank 19
sh s*Blank 20
sp = Blank 21
Find the roots of each four given polynomials
rf = Blank 22 (1)
rg = Blank 23
rh
roots (Blank 24)
rp roots (Blank 25)
*Use the results of part 3 to find the polynomial coefficients from the given.
roots
pcf poly (Blank 26)
pcg
poly (Blank 27)
pch
poly (Blank 28)
pcp poly (Blank 29)
*Evaluate the four polynomials at the point x =1, 3, 5, and -2
pnts = Blank 30 x values use space for separate elements lowest to highest
evf Blank 31
evg= polyval (g, Blank 32)
evh= polyval (Blank 33, pnts)
evp Blank 34 (Blank 35, pnts)
Transcribed Image Text:Pair 2 hpadd Blank 12 add h and p hpsub = Blank 13 sub h and p hpmul = conv (Blank 14, p) hpdiv = Blank 15, pl) Multiply the four polynomials by 4, 5, 6, and 7, in that order s = Blank 16; & scalar values 4 5 6 7 (bonus blank) must be 14;5; 6;7| but BBL cannot recognize the semi-colon and brackets here just use 4 567 sf Blank 17 s*Blank 18 sg=s*Blank 19 sh s*Blank 20 sp = Blank 21 Find the roots of each four given polynomials rf = Blank 22 (1) rg = Blank 23 rh roots (Blank 24) rp roots (Blank 25) *Use the results of part 3 to find the polynomial coefficients from the given. roots pcf poly (Blank 26) pcg poly (Blank 27) pch poly (Blank 28) pcp poly (Blank 29) *Evaluate the four polynomials at the point x =1, 3, 5, and -2 pnts = Blank 30 x values use space for separate elements lowest to highest evf Blank 31 evg= polyval (g, Blank 32) evh= polyval (Blank 33, pnts) evp Blank 34 (Blank 35, pnts)
Expert Solution
steps

Step by step

Solved in 2 steps with 112 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY