Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Re: Golf -- compute PI

by Anonymous Monk
on Apr 16, 2002 at 03:11 UTC ( [id://159401]=note: print w/replies, xml ) Need Help??


in reply to Re: Golf -- compute PI
in thread Golf -- compute PI

Shave another
$i+=($_%2*8-4)/($_*2-1)for 1..1e6;print$i
or equivalently
$i+=4*(-1)**$_/(1-$_*2)for 1..1e6;print$i

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-25 16:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found