derive an equation from a set of roots
6 views (last 30 days)
Show older comments
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
0 Comments
Accepted Answer
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)
0 Comments
More Answers (2)
Walter Roberson
on 18 Nov 2016
(x-first_root) * (x-second_root) * (x-third_root) * (x-fourth_root)
1 Comment
Walter Roberson
on 18 Nov 2016
syms x
r = [-2 , -.5 2 4.5]; % roots
p = expand( prod(x - r) )
ahmed abdellatif
on 11 Nov 2020
- Derive the symbolic equation of the polynomial that has the roots x = –0.5, x = 2 and x = 4.5.
1 Comment
See Also
Categories
Find more on Polynomials in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!