*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: lgamma | Section: 3 | Source: NetBSD | File: lgamma.3
LGAMMA(3) FreeBSD Library Functions Manual LGAMMA(3) NAME lgamma, lgammaf, lgamma_r, lgammaf_r, gamma, gammaf, gamma_r, gammaf_r, tgamma, tgammaf - log gamma function LIBRARY Math Library (libm, -lm) SYNOPSIS #include <math.h> extern int signgam; double lgamma(double x); float lgammaf(float x); double lgamma_r(double x, int *sign); float lgammaf_r(float x, int *sign); double gamma(double x); float gammaf(float x); double gamma_r(double x, int *sign); float gammaf_r(float x, int *sign); double tgamma(double x); float tgammaf(float x); DESCRIPTION lgamma(x) returns ln|<Gamma>(x)|. The external integer signgam returns the sign of <Gamma>(x). lgamma_r() is a reentrant interface that performs identically to lgamma(), differing in that the sign of <Gamma>(x) is stored in the location pointed to by the sign argument and signgam is not modified. The tgamma(x) and tgammaf(x) functions return <Gamma>(x), with no effect on signgam. gamma(), gammaf(), gamma_r(), and gammaf_r() are deprecated aliases for lgamma(), lgammaf(), lgamma_r(), and lgammaf_r(), respectively. IDIOSYNCRASIES Do not use the expression "signgam*exp(lgamma(x))" to compute g := <Gamma>(x). Instead use a program like this (in C): lg = lgamma(x); g = signgam*exp(lg); Only after lgamma() has returned can signgam be correct. RETURN VALUES lgamma() returns appropriate values unless an argument is out of range. Overflow will occur for sufficiently large positive values, and non- positive integers. For large non-integer negative values, tgamma() will underflow. On the VAX, the reserved operator is returned, and errno is set to ERANGE. SEE ALSO math(3) HISTORY The lgamma function appeared in 4.3BSD. The tgamma() function appeared in NetBSD 6.0. FreeBSD 14.1-RELEASE-p8 May 4, 2012 FreeBSD 14.1-RELEASE-p8

Navigation Options