From owner-freebsd-bugs Sun Jul 15 7:20: 3 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 751AB37B401 for ; Sun, 15 Jul 2001 07:20:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f6FEK1151552; Sun, 15 Jul 2001 07:20:01 -0700 (PDT) (envelope-from gnats) Date: Sun, 15 Jul 2001 07:20:01 -0700 (PDT) Message-Id: <200107151420.f6FEK1151552@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Stephen Montgomery-Smith Subject: Re: bin/28972: gamma returns same result as lgamma Reply-To: Stephen Montgomery-Smith Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/28972; it has been noted by GNATS. From: Stephen Montgomery-Smith To: Bruce Evans Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: bin/28972: gamma returns same result as lgamma Date: Sun, 15 Jul 2001 09:13:40 -0500 So we should fix the man page then? Does gamma set signgam? I did a diff on the source code for gamma and lgamma and they did seem very different, at least superficially. The man page is very broken. It includes comments like: For arguments in its range, gamma() and gammaf() is preferred, as for positive arguments it is accurate to within one unit in the last place. Exponentiation of lgamma() will lose up to 10 significant bits. Bruce Evans wrote: > > On Sat, 14 Jul 2001, Stephen Montgomery-Smith wrote: > > > The function gamma in the math library gives the wrong answer - it gives the > > same answer as lgamma. ... > > This is intentional (except for the broken man page). gamma was actually > the log of gamma in many old Unix libraries. I think these libraries had > no actual gamma function. I'm not sure if they had the log of gamma named > as lgamma. -- Stephen Montgomery-Smith stephen@math.missouri.edu http://www.math.missouri.edu/~stephen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message