note
andreychek
Here's a few more methods of achieving pi:<br><br>
# <b>39</b> Characters<br>
map$x+=(-1)**$_*4/(2*$_+1),0..1e6;die$x<br><br>
Now, I know [Ovid] said no Trig functions, but I couldn't resist. Perhaps we could consider the next two examples mulligans :-)<br><br>
# <b>45</b> Characters<br>
use Math::Trig;die 16*atan(1/5)-4*atan(1/239)<br><br>
# <b>21</b> Characters<br>
use Math::Trig;die pi<br><br>
-Eric<br><br>
<b>Update:</b> Taking some of [PrakashK]'s suggestions, shaved off a few more characters. Thanks [PrakashK]! :-)<br>
159377
159377