ToolPythonIntermediate
numpy.roots
Python. Called in 2 tutorials; each line below leads to its place in the tutorial.
ConceptPythonIntermediate
Polynomial roots are eigenvalues: why Wilkinson's polynomial loses its roots
- r = np.roots(coef)
- num_h = np.array(sorted(np.roots(coef_h), key=lambda z: (round(z.real, 9), z.imag)))
- diff = np.abs(np.linalg.eigvals(C) - np.roots(coef)).max()
- for z in np.roots(coef): # multiply out the computed roots, 60 digits
- "np.roots, float coefficients": np.roots(coef),
- cloud = np.array([np.sort_complex(np.roots(coef * (1 + eta * gi))) for gi in g])
and 5 more lines in this tutorial