Quote:

Originally Posted by **xpi0t0s**
Does it work? Have you entered some test values, and did the correct results come out? If not, what results did you get?

Yes.I entered 78.32for example and the program outputs 8.84986 for square root.Another program I wrote uses heron's formula and the output is the same ( 8.84986) while the normal cmath sqrt() function outputs 8.83176.Anyway, the program works properly but I'm not sure if this is the right way for Newton's method and if the formula I'm using is correct...