5+6 ans = 11 p=[1,4,5] p = 1 4 5 q=[1,0,0,0,4,5,0] q = 1 0 0 0 4 5 0 roots(p) ans = -2.0000 + 1.0000i -2.0000 - 1.0000i roots(q) ans = 0 1.2207 + 1.0458i 1.2207 - 1.0458i -0.7207 + 1.1898i -0.7207 - 1.1898i -1.0000 polyval(q,3) ans = 780 3.^6+4*3.^2+5*3 ans = 780 x=[-4:4] x = -4 -3 -2 -1 0 1 2 3 4 polyval(q,x) ans = Columns 1 through 4 4140 750 70 0 Columns 5 through 8 0 10 90 780 Column 9 4180 format compact x=[-4:4] x = -4 -3 -2 -1 0 1 2 3 4 polyval(q,x) ans = Columns 1 through 4 4140 750 70 0 Columns 5 through 8 0 10 90 780 Column 9 4180 x=[3,6]; poly(x) ans = 1 -9 18 g=poly(x) g = 1 -9 18 roots(g) ans = 6 3 h=g*4 h = 4 -36 72 roots(h) ans = 6 3 p p = 1 4 5 q q = 1 0 0 0 4 5 0 conv(p,q) ans = 1 4 5 0 4 21 40 25 0 ch=conv(p,q) ch = 1 4 5 0 4 21 40 25 0 length(ch) ans = 9 diary off