Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by schoen

11 years 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!

0 comments

schoen

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities