*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->OpenBSD man pages -> gammaf (3)              



NAME    [Toc]    [Back]

     lgamma, lgammaf - log gamma functions

SYNOPSIS    [Toc]    [Back]

     #include <math.h>

     extern int signgam;

     lgamma(double x);

     lgammaf(float x);

DESCRIPTION                _
     lgamma(x) returns ln|| (x)|.
     The external integer signgam returns the sign of | (x).  The
     function is a single precision version of lgamma().

IDIOSYNCRASIES    [Toc]    [Back]

     Do not use the expression `signgam*exp(lgamma(x))'  to  compute g := | (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    [Toc]    [Back]

     lgamma()  returns  appropriate  values unless an argument is
out of range.
     Overflow will occur for sufficiently large positive  values,
and non-positive
  integers.   On  the  VAX, the reserved operator is returned, and errno
     is set to ERANGE.

SEE ALSO    [Toc]    [Back]

     infnan(3), math(3)

HISTORY    [Toc]    [Back]

     The lgamma() function appeared in 4.3BSD.

OpenBSD     3.6                        December      3,      1992
[ Back ]
 Similar pages
Name OS Title
gammaf FreeBSD log gamma functions, gamma function
lgammaf FreeBSD log gamma functions, gamma function
gamma FreeBSD log gamma functions, gamma function
tgamma FreeBSD log gamma functions, gamma function
lgamma FreeBSD log gamma functions, gamma function
lgamma_r NetBSD log gamma function
lgammaf NetBSD log gamma function
gamma IRIX get or set the system gamma value
lgamma NetBSD log gamma function
lgammaf_r NetBSD log gamma function
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service