Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Golf -- compute PI (boo)

by boo_radley (Parson)
on Apr 16, 2002 at 02:06 UTC ( [id://159390]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #000000001111111111222222222233333333334444444444555555555566666666
    #234567890123456789012345678901234567890123456789012345678901234567
    $i=43;$p=1;eval'$x'.chr($i).'=4/$p;$p+=2;$i^=6'for 1..10**5;print$x
    
  2. or download this
    #0000000011111111112222222222333333333344444444445555555555
    #2345678901234567890123456789012345678901234567890123456789
    $o=1;$t=3;for(1..1e5){$e+=(4/$o)-(4/$t);$o+=4;$t+=4}print$e
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-03-29 06:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found