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

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

by pepik_knize (Scribe)
on May 13, 2002 at 18:22 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-18 01:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found