3 ms·
There is a faster way to get pi in bc: echo '4*a(1)' | bc -l (That is, 4×arctan(1)=4×π/4=π.) But your way is truly an awesome use of Unix!
by schoen 12y ago
There is a faster way to get pi in bc:
echo '4*a(1)' | bc -l
(That is, 4×arctan(1)=4×π/4=π.) But your way is truly an awesome use of Unix!