Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Golf -- compute PI

by metadoktor (Hermit)
on Apr 16, 2002 at 02:53 UTC ( [id://159395]=note: print w/replies, xml ) Need Help??


in reply to Golf -- compute PI

Hmmm....25 char pi with accuracy up to 15 digits...does this count? Just kidding. Ha ha ;)

sub pi { # 1 2 #1234567890123456789012345 print"3.14159265358979\n"; }

Actually, I think it is a little tricky to devise a Perl program that accurately calculates pi. A monk once made this post that seemed to inaccurately calculate pi.

metadoktor

"The doktor is in."

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-24 05:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found