This is the mail archive of the
gsl-discuss@sourceware.org
mailing list for the GSL project.
Re: Patch to define GSL_SF_FACT_NMAX and GSL_SF_DOUBLEFACT_NMAX
- From: Brian Gough <bjg at network-theory dot co dot uk>
- To: "Jonathan G. Underwood" <j dot underwood at open dot ac dot uk>
- Cc: gsl-discuss at sources dot redhat dot com
- Date: Wed, 12 Oct 2005 18:10:40 +0100
- Subject: Re: Patch to define GSL_SF_FACT_NMAX and GSL_SF_DOUBLEFACT_NMAX
- References: <434A3EE2.3010202@open.ac.uk>
Jonathan G. Underwood writes:
> The attached patch exports the following two macros:
>
> GSL_SF_FACT_NMAX
> GSL_SF_DOUBLEFACT_NMAX
>
> which define the maximum values of n such that gsl_sf_fact(n) and
> gsl_sf_doublefact(n) do not over flow.
Thanks, this seems sensible.
> related to the gamma function. Also, this patch adds an #undef
> LogRootTwoPi_ for gamma.c, as it was never meant to be exported
> (cosmetic).
The LogRootTwoPi_ definition is local to the file, so that one's ok.
--
Brian Gough
Network Theory Ltd,
Publishing Free Software Manuals --- http://www.network-theory.co.uk/