From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1186 invoked by alias); 3 Dec 2001 23:27:59 -0000 Mailing-List: contact gsl-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gsl-discuss-owner@sources.redhat.com Received: (qmail 1172 invoked from network); 3 Dec 2001 23:27:58 -0000 Received: from unknown (HELO mail2.svr.pol.co.uk) (195.92.193.210) by sources.redhat.com with SMTP; 3 Dec 2001 23:27:58 -0000 Received: from modem-82.false-clownfish.dialup.pol.co.uk ([62.137.9.82] helo=debian) by mail2.svr.pol.co.uk with esmtp (Exim 3.13 #0) id 16B2V8-0000q4-00; Mon, 03 Dec 2001 23:27:55 +0000 Received: from bjg by debian with local (Exim 2.05 #1 (Debian)) id 16B247-00005g-00; Mon, 3 Dec 2001 22:59:59 +0000 From: Brian Gough MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15372.1006.825208.314313@debian> Date: Thu, 29 Nov 2001 01:08:00 -0000 To: jonathan@leto.net Cc: gsl-discuss@sources.redhat.com Subject: Re: sf_gamma questions In-Reply-To: <20011201214553.A31518@leto.net> References: <20011201214553.A31518@leto.net> X-Mailer: VM 6.62 under Emacs 19.34.1 X-SW-Source: 2001-q4/txt/msg00089.txt.bz2 Message-ID: <20011129010800.ORh5N26boUiyy2mZ7wFPYe1jvCSz88zQmsA13XffG5g@z> Jonathan Leto writes: > Why is the error so large for gamma(x>18) ? It's computed with an approximation so the relative error is the appropriate measure. Note that 1/Gamma(19) is the first value which is less than DBL_EPSILON. > Would it be possible to just return factorial(x-1) if gamma is > given an integer argument? Sounds reasonable to me.