Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: [Study]: Searching for square roots

by Anonymous Monk
on Nov 15, 2006 at 13:08 UTC ( [id://584147]=note: print w/replies, xml ) Need Help??


in reply to [Study]: Searching for square roots

If you didn't try to invent a new algo (binary search with squaring) but sticked to ol' Newton (n=middle(n,x/n)) then your problem won't exist.
  • Comment on Re: [Study]: Searching for square roots

Replies are listed 'Best First'.
Re^2: [Study]: Searching for square roots
by pemungkah (Priest) on Nov 15, 2006 at 21:26 UTC
    Right, but his point was that he wanted to try something, which is an attitude to be encouraged. Maybe it's not effective, or better, or useful, but it's exploring to find out how to do something in a different way, and understanding how to use the tools to do it.

    If you're comfortable with thinking about a problem in multiple ways, you can learn when to use one versus another. If you only know how to do iterative solutions, recursive ones look strange and challenging (or vice versa, for those whose first language was LISP).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-19 11:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found