Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Friday April 21, 2006
11:05 AM

Don't Memorize Pi

[ #29402 ]

There's no need to memorize the digits of Pi. Just remember -1.

use Math::Complex;
use constant PI => -1 * log(-1) * sqrt(-1);
printf "Pi is %.12f\n", PI;

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.