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 ?
thanks
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 ?
thanks
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.
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