Query: tgammaf
OS: netbsd
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
LGAMMA(3) BSD Library Functions Manual LGAMMA(3)NAMElgamma, lgammaf, lgamma_r, lgammaf_r, gamma, gammaf, gamma_r, gammaf_r, tgamma, tgammaf -- log gamma functionLIBRARYMath 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|| (x)|. _ The external integer signgam returns the sign of | (x). _ lgamma_r() is a reentrant interface that performs identically to lgamma(), differing in that the sign of | (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 | (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 := | (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 VALUESlgamma() 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 ALSOmath(3)HISTORYThe lgamma function appeared in 4.3BSD. The tgamma() function appeared in NetBSD 6.0.BSDMay 4, 2012 BSD
Related Man Pages |
---|
gammaf_r(3) - netbsd |
lgamma(3) - netbsd |
lgammaf_r(3) - netbsd |
gamma(3) - freebsd |
lgamma(3) - freebsd |
Similar Topics in the Unix Linux Community |
---|
Unix File Permissions |
sorting left-justified numeric values |
How to install PGX32 on Sparc 10 Ultra? |
Grandpa returning to UNIX |
Grep command to show the number of results |