Vote UpVote

Calculating Pi

Nick Hodges – More Stuff I found on my Embarcadero Blog. I believe that my unusual use of the case statement caused a bit of a stir.  I still like using case in this way…. This was fun to write.  I read this interesting post on StackOverflow, which had an answer about asking interview questions, and this was the example he gave: Given that Pi can be estimated using the function 4 * (1 - 1/3 + 1/5 - 1/7 + …) with more terms giving greater accuracy, write a function that calculates Pi to an accuracy of 5 decimal places. Now, I don’t get to do much coding anymore, but hey, I’m not completely ...
Favorite? Off-Topic? nick@nickhodges.com @ 2011-08-10 17:36


Visits: 1071
Votes: 2
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Simon J Stuart
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)