Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: [Study]: Searching for square roots

by jimbojones (Friar)
on Nov 14, 2006 at 14:07 UTC ( #583966=note: print w/ replies, xml ) Need Help??

in reply to [Study]: Searching for square roots


I think your problem is in your assumption of the maximum possible value for the square root of numbers in the range of 0 to 1.

I managed to fix your code with one line to handle the 0.5 case, but I'll leave it to you to find it.

a number between 0 and 1 can be written as 1/x, where x > 1. Then the sqrt(1/x) is sqrt(1)/sqrt(x) = 1/sqrt(x). Now sqrt(x) is < x, so the max value of sqrt(1/x) is 1/x.
- j

Comment on Re: [Study]: Searching for square roots

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://583966]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2015-11-27 19:44 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (731 votes), past polls