I have included some test cases. To run, run Soylution.
Using Halley's method to find the real roots of a polynomial