Can you give me a generalized form to find all the roots of a polynomial to the n-th degree using the newton method?