TIMTOWTDI...
I think I preserved the "spirit" of the algorithm :-)
#!/usr/bin/perl -w use strict; {(redo)while(printf"%.16f\n",$,+=((-1/++$_/(($a||=1)*=($_-$_++)*-1)))* +4)}
In reply to Re: one-liner pi
by life_monger
in thread one-liner pi
by zeno
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |