MATLAB: How to solve the polynomial equation of delta=c1*x​^4+c2*x^3+​c3*x^2+c4*​x+c5

polynomial solving

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

Best 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.
Related Question