Re: how to generate pi in c

2010-12-15 Thread Jussi Lehtola
On Mon, 13 Dec 2010 15:28:59 -0800 Rick Stevens wrote: > Marko Vojinovic wrote: > > Second, there are certain theoretical > ideas about the distribution > > of digits in transcendental numbers which can make progress via > > such lengthy computations. > > > > Nobody needs more than about 6 figur

Re: how to generate pi in c

2010-12-13 Thread Rick Stevens
On 12/13/2010 02:36 PM, Mike McCarty wrote: > Marko Vojinovic wrote: >> On Sat, Nov 6, 2010 at 8:43 AM, Mogens Kjaer wrote: http://www.kurims.kyoto-u.ac.jp/~ooura/pi_fft.html You'll need RAM to get many digits. >>> 1.6 G decimals in 20 hours on a machine with 16G RAM, running >>> x8

Re: how to generate pi in c

2010-12-13 Thread Mike McCarty
Marko Vojinovic wrote: > On Sat, Nov 6, 2010 at 8:43 AM, Mogens Kjaer wrote: >>> http://www.kurims.kyoto-u.ac.jp/~ooura/pi_fft.html >>> >>> You'll need RAM to get many digits. >> 1.6 G decimals in 20 hours on a machine with 16G RAM, running >> x86_64 Fedora 12. > > Really, I'm curious, is there a

Re: how to generate pi in c

2010-11-09 Thread Bill Davidsen
Arthur Bela wrote: > Does anyone has a "generate-pi.c" source code? Someone recently came up with an algorithm which would calculate arbitrary bits of the value of PI, as in binary digits. So you could calculate the trillionth place 0 or 1 without all the intervening bits. Should you find a use

Re: how to generate pi in c

2010-11-09 Thread Antonio Olivares
--- On Mon, 11/8/10, Marko Vojinovic wrote: > From: Marko Vojinovic > Subject: Re: how to generate pi in c > To: "Community support for Fedora users" > Date: Monday, November 8, 2010, 3:27 PM > On Monday, November 08, 2010 18:00:55 > Bruno Wolff III wrote: > &

Re: how to generate pi in c

2010-11-09 Thread Antonio Olivares
--- On Mon, 11/8/10, Joe Zeff wrote: > From: Joe Zeff > Subject: Re: how to generate pi in c > To: "Community support for Fedora users" > Date: Monday, November 8, 2010, 10:38 AM > On 11/08/2010 10:00 AM, Bruno Wolff > III wrote: > > Just remember that

Re: how to generate pi in c

2010-11-08 Thread Klaus-Peter Schrage
Am 08.11.2010 20:54, schrieb Tim: > Klaus-Peter Schrage: http://www.correctpi.com/ > > Tim: >>> I was always under the impression that pi was merely the ratio of the >>> circumference to the diameter, something that's easy enough to prove >>> empirically (measure the two, and do the maths). >

Re: how to generate pi in c

2010-11-08 Thread Dean S. Messing
The following program will compute pi to three (3) places (approximately :-) #define _ -F<00 || --F-OO--; int F=00,OO=00; main(){F_OO();printf("%1.3f\n", 4.*-F/OO/OO);}F_OO() { _-_-_-_ _-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_

Re: how to generate pi in c

2010-11-08 Thread Michael Hennebry
On Mon, 8 Nov 2010, Bruno Wolff III wrote: > Just remember that depends on Euclidean Geometry. In other geometries (say > very large circles on the surface of the earth) the ratio is different. There aren't terribly many useful non-Euclidean geometries for which there is a "the ratio". Spherical

Re: how to generate pi in c

2010-11-08 Thread Tim
Klaus-Peter Schrage: >>> http://www.correctpi.com/ Tim: >> I was always under the impression that pi was merely the ratio of the >> circumference to the diameter, something that's easy enough to prove >> empirically (measure the two, and do the maths). Marko Vojinovic: > Hey Tim, didn't you read

Re: how to generate pi in c

2010-11-08 Thread bruce
and... drum roll pi are squared... cake are round!!! gotta love those numonics! On Mon, Nov 8, 2010 at 10:38 AM, Joe Zeff wrote: > On 11/08/2010 10:00 AM, Bruno Wolff III wrote: >> Just remember that depends on Euclidean Geometry. In other geometries (say >> very large circles on the surf

Re: how to generate pi in c

2010-11-08 Thread Joe Zeff
On 11/08/2010 10:00 AM, Bruno Wolff III wrote: > Just remember that depends on Euclidean Geometry. In other geometries (say > very large circles on the surface of the earth) the ratio is different. And, of course, let's not forget the time that B.S. Johnson managed to make pi equal exactly three

Re: how to generate pi in c

2010-11-08 Thread Bruno Wolff III
On Mon, Nov 08, 2010 at 12:07:47 +, Marko Vojinovic wrote: > On Monday, November 08, 2010 04:49:33 Tim wrote: > > On Sat, 2010-11-06 at 17:13 +0100, Klaus-Peter Schrage wrote: > > > You are probably alle wrong - pi equals 3.125, see: > > > http://www.correctpi.com/ > > > > I was always unde

Re: how to generate pi in c

2010-11-07 Thread Ankur Sinha
I haven't really followed the thread but here's a link that might be handy: http://gmplib.org/pi-with-gmp.html -- Thanks! Regards, Ankur https://fedoraproject.org/wiki/User:Ankursinha "FranciscoD" -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription opt

Re: how to generate pi in c

2010-11-07 Thread Tim
On Sat, 2010-11-06 at 17:13 +0100, Klaus-Peter Schrage wrote: > You are probably alle wrong - pi equals 3.125, see: > http://www.correctpi.com/ I was always under the impression that pi was merely the ratio of the circumference to the diameter, something that's easy enough to prove empirically (me

Re: how to generate pi in c

2010-11-07 Thread Joe Zeff
On 11/07/2010 01:26 PM, Marko Vojinovic wrote: > I found it really hard to believe that such "results" are still possible to > get published by anyone. I'll bet that if you looked carefully, the book was "self published," which just means that he's gotten the book printed at his own expense, pro

Re: how to generate pi in c

2010-11-07 Thread Joe Zeff
On 11/07/2010 12:08 PM, Wolfgang S. Rupprecht wrote: > > Klaus-Peter Schrage writes: >> You are probably alle wrong - pi equals 3.125, see: >> http://www.correctpi.com/ > > Arrrg. I don't believe that I actually tried to read that and follow > his logic. Now my brain hurts. This needs a NSFB wa

Re: how to generate pi in c

2010-11-07 Thread Wolfgang S. Rupprecht
Klaus-Peter Schrage writes: > You are probably alle wrong - pi equals 3.125, see: > http://www.correctpi.com/ Arrrg. I don't believe that I actually tried to read that and follow his logic. Now my brain hurts. This needs a NSFB warning. -wolfgang -- Wolfgang S. Rupprecht http://www.wsr

Re: how to generate pi in c

2010-11-07 Thread Rodolfo Alcazar Portillo
On Sat, 2010-11-06 at 12:18 +, Marko Vojinovic wrote: > Really, I'm curious, is there any real-world problem where anyone > would actually *need* pi to a G decimal places? Making math is the best and pure form to develop creativity, art. Theory(science) can be learned by reading. Technique by

Re: how to generate pi in c

2010-11-07 Thread Les
On Sat, 2010-11-06 at 12:18 +, Marko Vojinovic wrote: > On Sat, Nov 6, 2010 at 8:43 AM, Mogens Kjaer wrote: > >> http://www.kurims.kyoto-u.ac.jp/~ooura/pi_fft.html > >> > >> You'll need RAM to get many digits. > > > > 1.6 G decimals in 20 hours on a machine with 16G RAM, running > > x86_64 Fed

Re: how to generate pi in c

2010-11-07 Thread Klaus-Peter Schrage
Am 06.11.2010 13:18, schrieb Marko Vojinovic: > On Sat, Nov 6, 2010 at 8:43 AM, Mogens Kjaer wrote: >>> http://www.kurims.kyoto-u.ac.jp/~ooura/pi_fft.html >>> >>> You'll need RAM to get many digits. >> >> 1.6 G decimals in 20 hours on a machine with 16G RAM, running >> x86_64 Fedora 12. > > Really

Re: how to generate pi in c

2010-11-07 Thread fred smith
On Sat, Nov 06, 2010 at 12:18:45PM +, Marko Vojinovic wrote: > On Sat, Nov 6, 2010 at 8:43 AM, Mogens Kjaer wrote: > >> http://www.kurims.kyoto-u.ac.jp/~ooura/pi_fft.html > >> > >> You'll need RAM to get many digits. > > > > 1.6 G decimals in 20 hours on a machine with 16G RAM, running > > x86

Re: how to generate pi in c

2010-11-06 Thread Mogens Kjaer
On 11/06/2010 01:18 PM, Marko Vojinovic wrote: > On Sat, Nov 6, 2010 at 8:43 AM, Mogens Kjaer wrote: >>> http://www.kurims.kyoto-u.ac.jp/~ooura/pi_fft.html >>> >>> You'll need RAM to get many digits. >> >> 1.6 G decimals in 20 hours on a machine with 16G RAM, running >> x86_64 Fedora 12. > > Real

Re: how to generate pi in c

2010-11-06 Thread Marko Vojinovic
On Sat, Nov 6, 2010 at 8:43 AM, Mogens Kjaer wrote: >> http://www.kurims.kyoto-u.ac.jp/~ooura/pi_fft.html >> >> You'll need RAM to get many digits. > > 1.6 G decimals in 20 hours on a machine with 16G RAM, running > x86_64 Fedora 12. Really, I'm curious, is there any real-world problem where anyo

Re: how to generate pi in c

2010-11-06 Thread Mogens Kjaer
On 11/06/2010 09:01 AM, Mogens Kjaer wrote: ... > http://www.kurims.kyoto-u.ac.jp/~ooura/pi_fft.html > > You'll need RAM to get many digits. 1.6 G decimals in 20 hours on a machine with 16G RAM, running x86_64 Fedora 12. No way near a record, but I don't have access to a machine with more RAM...

Re: how to generate pi in c

2010-11-06 Thread Mogens Kjaer
On 11/05/2010 05:40 PM, Arthur Bela wrote: > Does anyone has a "generate-pi.c" source code? http://www.kurims.kyoto-u.ac.jp/~ooura/pi_fft.html You'll need RAM to get many digits. Mogens -- Mogens Kjaer, m...@lemo.dk http://www.lemo.dk -- users mailing list users@lists.fedoraproject.org To uns

Re: how to generate pi in c

2010-11-05 Thread Rodolfo Alcazar Portillo
On Fri, 2010-11-05 at 19:12 +0100, Rodolfo Alcazar Portillo wrote: > On Fri, 2010-11-05 at 17:40 +0100, Arthur Bela wrote: > > Does anyone has a "generate-pi.c" source code? > > And do not lose Fabrice Bellard's Pi record... with Fedora. > http://bellard.org/ Damn! Didn't knew he was beaten by a

Re: how to generate pi in c

2010-11-05 Thread Rodolfo Alcazar Portillo
On Fri, 2010-11-05 at 17:40 +0100, Arthur Bela wrote: > Does anyone has a "generate-pi.c" source code? And do not lose Fabrice Bellard's Pi record... with Fedora. http://bellard.org/ Cheers. -- Rodolfo Alcazar Portillo - nosp...@gmail.com otbits.blogsp

Re: how to generate pi in c

2010-11-05 Thread Joe Zeff
On 11/05/2010 09:49 AM, Andrew Haley wrote: > On 11/05/2010 04:40 PM, Arthur Bela wrote: >> Does anyone has a "generate-pi.c" source code? > > Lots of people do. You'll have to be a bit more specific about > what you actually want. I guess it's more than > > 4*atan(1.0) > > Andrew. As a side

Re: how to generate pi in c

2010-11-05 Thread Alan Cox
On Fri, 5 Nov 2010 17:40:34 +0100 Arthur Bela wrote: > Does anyone has a "generate-pi.c" source code? bsd-games has a pi tool for some reason -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users

Re: how to generate pi in c

2010-11-05 Thread Jim Davis
On Fri, Nov 5, 2010 at 9:40 AM, Arthur Bela wrote: > Does anyone has a "generate-pi.c" source code? a[52514],b,c=52514,d,e,f=1e4,g,h;main(){for(;b=c-=14;h=printf("%04d", e+d/f))for(e=d%=f;g=--b*2;d/=g)d=d*b+f*(h?a[b]:f/5),a[b]=d%--g;} ...though that's only good for the first 15,000 digits. You p

Re: how to generate pi in c

2010-11-05 Thread JD
On 11/05/2010 09:40 AM, Arthur Bela wrote: > Does anyone has a "generate-pi.c" source code? > > Thanks.. :D :\ I do not have that specific file, but this might help you Calculate pi to 800 digits in 160 characters of code. Written by Dik T. Winter at CWI. int a=1,b,c=2800,d,e,f[2801],g;

Re: how to generate pi in c

2010-11-05 Thread Bryn M. Reeves
On 11/05/2010 04:40 PM, Arthur Bela wrote: > Does anyone has a "generate-pi.c" source code? > > Thanks.. :D :\ Any book on numerical algorithms should give you a good run down on how you can implement this in general. If you're not looking to get too deep into this then Wikipedia has an article t

Re: how to generate pi in c

2010-11-05 Thread Andrew Haley
On 11/05/2010 04:40 PM, Arthur Bela wrote: > Does anyone has a "generate-pi.c" source code? Lots of people do. You'll have to be a bit more specific about what you actually want. I guess it's more than 4*atan(1.0) Andrew. -- users mailing list users@lists.fedoraproject.org To unsubscribe o

how to generate pi in c

2010-11-05 Thread Arthur Bela
Does anyone has a "generate-pi.c" source code? Thanks.. :D :\ -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines