Article View: comp.lang.fortran
Article #6564Re: Fastest code for Gamma function
From: Glen Barnett
Date: Tue, 09 May 2000 00:00
Date: Tue, 09 May 2000 00:00
33 lines
1969 bytes
1969 bytes
Leonard Howell wrote: > > Hi all -- > > I need to compute the gamma probability density function g(x;a,b)=C(a,b) > x**(a-1) exp(-x/b) on the order of 10**10 calls (on many different > occasions) and thus would like to use the FASTEST algorithm available. It > must also be double precision with 14 or 15 decimal places of accuracy. > Advice/coded FORTRAN solutions greatly appreciated. Other language > solutions also welcome, if the speed and accuracy is achieved. > > Thanks, Leonard I'd start off by trying netlib, GAMS and possibly statlib and seeing what I could turn up there. netlib - www.netlib.org GAMS - gams.nist.gov statlib - lib.stat.cmu.edu There are a number of Journals I'd look at, including "Communications of the ACM" (some of the older algorithms from which are on netlib) - this is a good place to look for code for something like your problem. Another place would be the Journal of the Royal Statistical Society - Series C (Applied Statistics), which in the past was mostly algorithms, though more recently it had moved closer to its title. If you have access to the Current Index to Statistics, I'd give that a look. Glen
Technical Details
Message-ID:
<3917A1FA.B1580403@geocities.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<fGNQ4.51301$WF.2761743@bgtnsc04-news.ops.worldnet.att.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d632,8bad7910b3fe0dc6 X-Google-Attributes: gid10d632,public X-Google-Thread: 104500,8bad7910b3fe0dc6 X-Google-Attributes: gid104500,public X-Google-Thread: 1094ba,8bad7910b3fe0dc6 X-Google-Attributes: gid1094ba,public From: Glen Barnett <glenbarnett@geocities.com> Subject: Re: Fastest code for Gamma function Date: 2000/05/09 Message-ID: <3917A1FA.B1580403@geocities.com> X-Deja-AN: 620981761 Content-Transfer-Encoding: 7bit References: <fGNQ4.51301$WF.2761743@bgtnsc04-news.ops.worldnet.att.net> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: University of New South Wales Mime-Version: 1.0 Newsgroups: comp.lang.fortran,computer42.statistik,sci.stat.math