Compilation: javac Newton.java
Execution: java Newton x0 x1 x2 x3
Compute the square root using Newton's method. Package it
in a static method.
% java Newton 1 2 3 1000000.1 -2 0 -0 NaN Infinity -Infinity
1.0
1.414213562373095
1.7320508075688772
1000.0000499999987
NaN
0.0
-0.0
NaN
Infinity
NaN