Python, Numerical Methods, Mathematics, Newtons Method.
len(coef)>2: fn = symbolic_fn(coef) root=newtons_method(fn) roots.append(root) coef=synthetic_division(coef,root) return roots + [-coef[-1]] How to use my code python3 solve_any_poly.py # Enter Coefficients of Equation (comma separated):1,-9,26,-24 # [2, 3, 4] Output of solve_any_poly.py Tools used