Thread: Approximation of Pi

  1. #1
    Registered User
    Join Date
    Jun 2017

    Approximation of Pi

    hello i am trying to write a program in c to find the Approximation of Pi, by using Bailey-Borwein-Plouffe formula : π+3=∑∞n=1 (n2)n(n!)2/(2n)! we should ask the user to give an accuracy (epsilon)
    ANYONE can help ?

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    So what have you tried so far?

    You need to demonstrate some actual effort - more than just dumping your assignment with "please help" tacked on the end.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    May 2009
    For those who never heard of this method discovered in 1995.
    Bailey–Borwein–Plouffe formula - Wikipedia

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with e constant approximation program
    By tsjohnsoniii in forum C Programming
    Replies: 5
    Last Post: 10-10-2011, 11:59 PM
  2. help with factorials in sin approximation
    By p_dub in forum C Programming
    Replies: 9
    Last Post: 10-12-2010, 12:22 PM
  3. Sine approximation Help
    By What111 in forum C Programming
    Replies: 8
    Last Post: 11-04-2007, 06:22 PM
  4. Pi Approximation
    By dasar in forum C Programming
    Replies: 6
    Last Post: 10-07-2007, 07:41 AM
  5. Rectangular Approximation Program Help
    By Noah in forum C Programming
    Replies: 4
    Last Post: 03-15-2006, 02:23 PM

Tags for this Thread