Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: computing square root by hand -- no sqrt (golf, beginner)

by pepik_knize (Scribe)
on May 13, 2002 at 18:22 UTC ( #166239=note: print w/replies, xml ) Need Help??


in reply to computing square root by hand -- no sqrt (golf, beginner)

44 using both arguments, but no \n. Add 3 for -l to get it.
0 1 2 3 4 12345678901234567890123456789012345678901234 $b=pop;$b=($b+$ARGV[0]/$b)/2for 0..9;print$b

Pepik

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2022-08-18 10:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?