Q:

Represent the expression z3 -2z2 + 3 – 5i as a row vector of coefficients, and store this in a variable compoly. Use the roots function to solve z3 -2z2 + 3 – 5i = 0. Also, find the value of compoly when z = 2 using polyval

0

Represent the expression z3 -2z2 + 3 – 5i as a row vector of coefficients, and store this in a variable compoly. Use the roots function to solve z3 -2z2 + 3 – 5i = 0. Also, find the value of compoly when z = 2 using polyval. 

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

>> compoly = [1 -2 3-5i];

>> croots = roots(compoly)

croots =

 2.3010 + 1.9216i

 -0.3010 - 1.9216i

>> val = polyval(compoly,2)

val =

 3.0000 - 5.0000i

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now