Sqrt(x) II
Implementdouble sqrt(double x)
andx >= 0
.
Compute and return the square root of x.
Example
Givenn
=2
return1.41421356
Last updated
Was this helpful?
Implementdouble sqrt(double x)
andx >= 0
.
Compute and return the square root of x.
Example
Givenn
=2
return1.41421356
Last updated
Was this helpful?