PLEASE USE PYTHON CODE
11. Find all zeros of given Pn(x)
P5(x) = x^5 -156x^4 -5x^3 +780x^2 + 4x - 624
Hey, This can be done easily with Numpy.
import numpy as np
p = np.poly1d([1, -156, -5,780,4,-624])
#we define polynomial by passing it's coefficients in poly1d function which is inbuilt in numpy.
print(p) #Now, I have printed the polynomial just to check if the polynomial is right or not.
root=p.r #Now finding roots of the polynomial and storing it in root variable.
print(root) #Now print root
Cheers !! If you have any problem or if you want to solve from any other method name it. I will solve it. Please Upvote
Get Answers For Free
Most questions answered within 1 hours.