Posted By


NihilistDandy on 02/05/11

Tagged


Statistics


Viewed 416 times
Favorited by 0 user(s)

Pi Approximation


/ Published in: Haskell
Save to your folder(s)

GHC already has `pi' built in, but I wanted to compare values. `(this snippet) == pi' returns `True'.


Copy this code and paste it in your HTML
  1. (176 * atan (1 / 57) + 28 * atan (1 / 239) - 48 * atan (1 / 682) + 96 * atan (1 / 12943))

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.