Problem 2¶
Approximate the square root of non-zero positive integer c
.
Use Newton-Raphson method: t' = ((c/t) +t) / 2.0
.
The result t
should be precise up to eps
: abs(t*t -c) < eps
.
Functions:
|
Approximate the square-root of |
Approximate the square root of non-zero positive integer c
.
Use Newton-Raphson method: t' = ((c/t) +t) / 2.0
.
The result t
should be precise up to eps
: abs(t*t -c) < eps
.
Functions:
|
Approximate the square-root of |