Advertisement
Guest User

Untitled

a guest
Oct 18th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. a = [1 0 -1 0 1]; % (x^4 - x^2 + 1)
  2. b = [-2 2 1 4]; % (-2x^3 + 2x^2 + x + 4)
  3. c = [1 2 -2]; % (x^2 + 2x -2)
  4. % multiplying a and b for left side
  5. ab = conv(a,b);
  6. % of (4 / c), move c to the left of the equal sigh
  7. % so we have (a*b) / c = 4
  8. abc = deconv(ab,c);
  9. % now move 4 to the other side
  10. D = [abc 4];
  11. % now we have (a*b)/c - 4 = 0
  12. % now we find the roots
  13. r = roots(D)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement