From: Brian Gough <bjg@network-theory.co.uk>
To: James Theiler <jt@lanl.gov>
Cc: Gerard Jungman <jungman@lanl.gov>, <gsl-discuss@sources.redhat.com>
Subject: Re: faster log factorials
Date: Mon, 19 May 2003 09:39:00 -0000 [thread overview]
Message-ID: <16072.42617.216305.980919@debian.local> (raw)
In-Reply-To: <Pine.LNX.4.33.0305142205440.23284-100000@yks.lanl.gov>
James Theiler writes:
> That is, Lookup is 7x faster than Stirling, which in turn is 3x faster
> than Lanczos. To my mind, this is an argument in favor of running up
> the upper bound on the table for log(n!); further, whenever n exceeds
> whatever upper bound we choose, we should use Stirling instead of
> Lanczos for the large n result.
A version with a larger lookup table could go in the new contrib/
directory. Some people might want to optimise for space instead of
speed.
I think 170 is a good natural limit.
--
Brian
next prev parent reply other threads:[~2003-05-19 9:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-28 4:57 James Theiler
2003-05-10 19:09 ` Brian Gough
2003-05-10 19:29 ` Brian Gough
2003-05-12 14:02 ` James Theiler
2003-05-12 21:56 ` Gerard Jungman
2003-05-12 23:34 ` James Theiler
2003-05-15 4:16 ` James Theiler
2003-05-19 9:39 ` Brian Gough [this message]
2003-05-19 18:55 ` Gerard Jungman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16072.42617.216305.980919@debian.local \
--to=bjg@network-theory.co.uk \
--cc=gsl-discuss@sources.redhat.com \
--cc=jt@lanl.gov \
--cc=jungman@lanl.gov \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).