Write a program to find roots of a polynomial equation | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Write a program to find roots of a polynomial equation

X^5-x^4+x^3+x^2+x-354=0

3rd Apr 2019, 6:49 PM
George
George - avatar
8 Answers
+ 6
Oh... I was thinking about differential equations😂 I'm not really sure how to do it, maybe try converting it to (x-a)(x-b)(x-c)(x-d)=0 and solve a,b,c,d?🤔
5th Apr 2019, 2:12 PM
Flandre Scarlet
Flandre Scarlet - avatar
+ 5
With Calculus and Engineering Math may help🤔
5th Apr 2019, 2:06 PM
Flandre Scarlet
Flandre Scarlet - avatar
+ 3
Try all factors of 354
4th Apr 2019, 1:14 AM
Flandre Scarlet
Flandre Scarlet - avatar
+ 2
It's Newton's method, used to find rational roots
4th Apr 2019, 1:32 PM
Flandre Scarlet
Flandre Scarlet - avatar
+ 1
Flandre scarlet, is there any method to find all roots of a function at once?
5th Apr 2019, 2:05 PM
George
George - avatar
0
What if the equation resembles something like this '8x^4-54x^3+101x^2-54x+8=0'? Will the factoring method work here with this too? Or synthetic division? Flandre scarlet?
4th Apr 2019, 1:30 PM
George
George - avatar
0
Synthetic division helps right? Except that we have to merge the use of quadratic root finding method to get to the final solution.
5th Apr 2019, 2:09 PM
George
George - avatar
0
Thank you. Scarlet
5th Apr 2019, 3:39 PM
George
George - avatar