How can I solve the polynomial equation of delta=c1*x​^4+c2*x^3+​c3*x^2+c4*​x+c5 ?

I have the values of delta and c1 to c5.I want to solve for the values of x
Thank you, Anand

 Accepted Answer

roots([c1 c2 c3 c4 c5-delta])
For example, given: 5 = 3*x^4 + 2*x^3 + x^2 - 5*x +3
x = roots([3 2 1 -5 3-5]) % These are the solutions.
3*x.^4 + 2*x.^3 + x.^2 - 5*x +3 % Check them.

More Answers (0)

Categories

Asked:

on 11 Sep 2012

Community Treasure Hunt

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

Start Hunting!