lgamma man page on Ultrix

Man page or keyword search:  
man Server   3690 pages
apropos Keyword Search (all sections)
Output format
Ultrix logo
[printable version]

gamma(3m)							     gamma(3m)

Name
       gamma, lgamma, signgam - log gamma function

Syntax
       #include <math.h>

       double gamma(x)
       double x;

       double lgamma(x)
       double x;

       extern int

Description
       The  function  returns  ln |Γ(|x|)|.  The sign of Γ(|x|) is returned in
       the external integer The following C program might be used to calculate
       Γ:

       y = gamma(x);
       if (y > 88.0)
	    error();
       y = exp(y);
       if(signgam)
	    y = -y;

       The function is another name for the gamma function.

Return Values
       The  and	 functions  return HUGE_VAL and set errno to EDOM when x is an
       integer value less than or equal to zero.  When the correct value would
       overflow they return HUGE_VAL and set errno to ERANGE.

Environment
       When  your  program is compiled using the System V environment for non‐
       positive integer values, HUGE is returned, and errno is set to EDOM.  A
       message	indicating  DOMAIN error is printed on the standard error out‐
       put.

       If the correct value would overflow, returns HUGE  and  sets  errno  to
       ERANGE.

       These error-handling procedures may be changed with the function

See Also
       matherr(3m)

				      VAX			     gamma(3m)
[top]

List of man pages available for Ultrix

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
...................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net