gamma man page on Xenix

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



     GAMMA(S)		      XENIX System V		      GAMMA(S)

     Name
	  gamma - Performs log gamma function.

     Syntax
	  #include <math.h>
	  extern int signgam;

	  double gamma (x)
	  double x;

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

	       if((y = gamma (x)) >LN_MAXDOUBLE)
		    error ();
	       y = exp (y) * signgam;

	  where LN_MAXDOUBLE is the least value that causes exp(S) to
	  return a range error and is defined in the <values.h> header
	  file.

     Diagnostics
	  For negative integer arguments, a HUGE value is returned and
	  errno is set to EDOM.	 A message indicating SING error is
	  printed on the standard error output.

	  If the correct value would overflow, gamma returns a HUGE
	  value and errno is set to ERANGE.

	  These error-handling procedures may be changed with the
	  matherr(S) function.

     See Also
	  exp(S), matherr(S)

     Notes
	  These routines must be linked by using the -lm linker
	  option.

     Page 1					      (printed 8/7/87)

[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server Xenix

List of man pages available for Xenix

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