in reply to Pi golf:
@_=map(1/$_,map($_**2,1..1000000));for(@_){$s+=$_[$i++]}$s*=6;print sq +rt$s;
Update: Ooh, and you can save even more by combining some operations:
@_=map(1/$_,map($_**2,1..1000000));for(@_){$s+=$_[$i++]}print sqrt$s*6
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Pi golf:
by Robbjedi (Novice) on Sep 05, 2006 at 19:52 UTC |