This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: faster log factorials
- From: Brian Gough <bjg at network-theory dot co dot uk>
- To: James Theiler <jt at lanl dot gov>
- Cc: gsl-discuss <gsl-discuss at sources dot redhat dot com>
- Date: Sat, 10 May 2003 20:10:10 +0100
- Subject: Re: faster log factorials
- References: <Pine.LNX.4.33.0304272254040.14457-200000@yks.lanl.gov>
James Theiler writes:
> While looking at another part of GSL (randist/binomial.c -- I'll
> have more to say about that in a later email), I realized that the
> function gsl_sf_lnfact() [this computes log(n!)] could be speeded up
> for small arguments by pre-computing the logarithms.
Sounds reasonable to provide the log in the table as well.