Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ gamma(3M) — GENIX 4.1A

Media Vault

Software Library

Restoration Projects

Artifacts Sought



      GAMMA(3M)               GENIX Programmer's Manual               GAMMA(3M)



      NAME
           gamma - log gamma function

      SYNOPSIS
           #include <math.h>

           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 might be used to
           calculate Γ:

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

      DIAGNOSTICS
           A huge value is returned for negative integer arguments.

      BUGS
           There should be a positive indication of error.





























      Printed 11/16/83                                                        1



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026