Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 24 Oct 2012 02:27:48 -0500 Message-ID: <50879876.78B7@mindspring.com> Date: Wed, 24 Oct 2012 03:27:50 -0400 From: pete Reply-To: pfiland@mindspring.com Organization: PF X-Mailer: Mozilla 3.04Gold (WinNT; I) MIME-Version: 1.0 Newsgroups: comp.lang.c Subject: Re: Large number libraries/algorithms References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 20 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 4.156.228.223 X-Trace: sv3-BtMF6ipCjOpxQwUvudzwoGQWNV0bHtVWnPVs4yJLvCcGBY4XMdDe/h9DwogTiiALIRYWF1wCTuVwo2O!EP7n+NdePBU5FnVrQirjWwUZiCuUCxntxZAzBufMjnRJIfhO/DrTwnCALYJwavmjdhyGsa9QYTiW!dHqfA3tv3Mo= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1578 Xref: csiph.com comp.lang.c:27620 boltar2003@boltar.world wrote: > > Does anyone know of an API that will do standard math ops > (*,+,-,/,% etc) on > very large numbers (stored in char arrays presumably)? > ie The sort of numbers > that have no chance of fitting in even a 64 bit int or double. > Or failing > that is there a good site explaining how to implement them yourself? > > Thanks for any info If you google on "PI_FFTCA" you can find software in C by Takuya Ooura for that kind of thing. PI_FFTCA.C calculates a whole lot of pi, very quickly. -- pete