This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: [Bug-gsl] bug in tdistinv.c and patch
- From: Brian Gough <bjg at network-theory dot co dot uk>
- To: Jason Stover <jstover at sdf dot lonestar dot org>
- Cc: gsl-discuss at sources dot redhat dot com
- Date: Mon, 4 Oct 2004 15:43:26 +0100
- Subject: Re: [Bug-gsl] bug in tdistinv.c and patch
- References: <20040925150318.GA24523@orwell><16733.34764.150024.947521@network-theory.co.uk><20041001182954.GA28629@SDF.LONESTAR.ORG>
Jason Stover writes:
> Have you decided what convention to use for returning the NAN? I ask
> because I'm writing routines to invert the beta and F distributions.
> I also thought about writing some discrete cdf's. So if you know
> what this convention is, I can follow it before sending the code along.
> Have you decided what convention to use for returning the NAN?
Probably similar to the macro DOMAIN_ERROR or DOMAIN_ERROR_MSG in
specfun/error.h.
> Out of curiosity: What's wrong with GSL_ERROR("blah blah",GSL_EINVAL)
> or GSL_ERROR("blah blah),GSL_EDOM)? That seems to be what the coding
> standards suggest.
Those only work if the return value of the function is a status code
(int).
--
Brian Gough