1Test of LGAMA(X) vs LN(2*SQRT(PI))-2X*LN(2)+LGAMA(2X)-LGAMA(X+1/2)


   2000 Random arguments were tested from the interval (  0.0,  0.9)


  LGAMA(X) was larger   776 times,
               agreed   890 times, and
          was smaller   334 times.


 There are  24 base   2 significant digits in a floating-point number


 The maximum relative error of     0.3491E-06 =    2 ** -21.45
    occurred for X = 0.703905E+00
 The estimated loss of base   2 significant digits is   2.55


 The root mean square relative error was     0.8353E-07 =    2 ** -23.51
 The estimated loss of base   2 significant digits is   0.49


1Test of LGAMA(X) vs LN(2*SQRT(PI))-(2X-1)*LN(2)+LGAMA(X-1/2)-LGAMA(2X-1)


   2000 Random arguments were tested from the interval (  1.3,  1.6)


  LGAMA(X) was larger   565 times,
               agreed   497 times, and
          was smaller   938 times.


 There are  24 base   2 significant digits in a floating-point number


 The maximum relative error of     0.6029E-06 =    2 ** -20.66
    occurred for X = 0.161043E+01
 The estimated loss of base   2 significant digits is   3.34


 The root mean square relative error was     0.1110E-06 =    2 ** -23.10
 The estimated loss of base   2 significant digits is   0.90


1Test of LGAMA(X) vs -LN(2*SQRT(PI))+X*LN(2)+LGAMA(X/2)+LGAMA(X/2+1/2)


   2000 Random arguments were tested from the interval (  4.0, 20.0)


  LGAMA(X) was larger   546 times,
               agreed   885 times, and
          was smaller   569 times.


 There are  24 base   2 significant digits in a floating-point number


 The maximum relative error of     0.2392E-06 =    2 ** -22.00
    occurred for X = 0.667641E+01
 The estimated loss of base   2 significant digits is   2.00


 The root mean square relative error was     0.7690E-07 =    2 ** -23.63
 The estimated loss of base   2 significant digits is   0.37


1Special Tests




 Test of special arguments


 LGAMA ( 0.119209E-06) =  0.159424E+02


 LGAMA ( 0.500000E+00) =  0.572365E+00


 LGAMA ( 0.100000E+01) =  0.000000E+00


 LGAMA ( 0.200000E+01) =  0.000000E+00


1Test of Error Returns



 LGAMA will be called with the argument 0.117549E-37
 This should not trigger an error message


 LGAMA returned the value 0.873365E+02



 LGAMA will be called with the argument 0.404464E+37
 This should not trigger an error message


 LGAMA returned the value 0.336880E+39



 LGAMA will be called with the argument-0.100000E+01
 This should trigger an error message


 LGAMA returned the value 0.340100E+39



 LGAMA will be called with the argument 0.000000E+00
 This should trigger an error message


 LGAMA returned the value 0.340100E+39



 LGAMA will be called with the argument 0.336880E+39
 This should trigger an error message


 LGAMA returned the value 0.340100E+39



 This concludes the tests
