in reply to Deriving pi and e
and:1while($x||=3)-($x-=sin$x/cos$x);print"$x\n"
1while($x||=2)-($x-=((log($x)-1)*$x));print"$x\n"
I particularly like the fact that it only uses 1 variable ;-)
Liz
Update:
Golfed some more by losing the seperate initial assignement of $x
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Deriving pi and e
by jdalbec (Deacon) on Jun 26, 2004 at 04:38 UTC |