derive an equation from a set of roots

6 views (last 30 days)
the question asks me to set x as a symbolic variable then asks me to derive a equation of a polynomial with the roots x=-2 ,x=-.5, x=2, and x=4.5

Accepted Answer

KSSV
KSSV on 18 Nov 2016
syms x
r = [-2 , -.5 2 4.5]; % roots
f = (x-r(1))*(x-r(2))*(x-r(3))*(x-r(4)) ;
p = expand(f)

More Answers (2)

Walter Roberson
Walter Roberson on 18 Nov 2016
(x-first_root) * (x-second_root) * (x-third_root) * (x-fourth_root)

ahmed abdellatif
ahmed abdellatif on 11 Nov 2020
  1. Derive the symbolic equation of the polynomial that has the roots x = 0.5, x = 2 and x = 4.5.
  1 Comment
James Tursa
James Tursa on 11 Nov 2020
The method for doing this has already been posted above.

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!