Newton's square root algorithm

Enter a positive number:
square root = NAN