 Test of LOG(Z) vs LOG(Z*Z)/2


   2000 Random arguments were tested from the box
      (     0.2000E+01,     0.1000E+02)
      (     0.0000E+00,     0.1000E+02)


 First, report the vector error


 Test function was larger     0 times,
                   agreed  1943 times, and
              was smaller    57 times.


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


 The maximum relative error of     0.2220E-15 =    2 ** -52.00
    occurred for Z =     0.739200E+01     0.000000E+00
    with a value of      0.200040E+01     0.000000E+00
 The estimated loss of base   2 significant digits is   1.00


 The root mean square relative error was     0.2682E-16 =    2 ** -55.05
 The estimated loss of base   2 significant digits is   0.00


 Then, report the error in the real component.


 Test function was larger    40 times,
                   agreed  1943 times, and
              was smaller    17 times.


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


 The maximum relative error of     0.2220E-15 =    2 ** -52.00
    occurred for Z =     0.739200E+01     0.000000E+00
    with a value of      0.200040E+01     0.000000E+00
 The estimated loss of base   2 significant digits is   1.00


 The root mean square relative error was     0.2682E-16 =    2 ** -55.05
 The estimated loss of base   2 significant digits is   0.00


 Then, report the error in the imaginary component.


 Test function was larger     0 times,
                   agreed     0 times, and
              was smaller  2000 times.


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


 The maximum relative error of     0.1000E+01 =    2 **   0.00
    occurred for Z =     0.200000E+01     0.000000E+00
    with a value of      0.693147E+00     0.000000E+00
 The estimated loss of base   2 significant digits is  53.00


 The root mean square relative error was     0.1000E+01 =    2 **   0.00
 The estimated loss of base   2 significant digits is  53.00


 Test of LOG(Z) vs LOG(Z*Z)/2


   2000 Random arguments were tested from the box
      (     0.1000E+04,     0.2000E+04)
      (    -0.1000E+04,    -0.4000E+04)


 First, report the vector error


 Test function was larger     0 times,
                   agreed  1443 times, and
              was smaller   557 times.


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


 The maximum relative error of     0.1226E-15 =    2 ** -52.86
    occurred for Z =     0.101550E+04    -0.100000E+04
    with a value of      0.726208E+01    -0.777708E+00
 The estimated loss of base   2 significant digits is   0.14


 The root mean square relative error was     0.3431E-16 =    2 ** -54.69
 The estimated loss of base   2 significant digits is   0.00


 Then, report the error in the real component.


 Test function was larger    72 times,
                   agreed  1836 times, and
              was smaller    92 times.


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


 The maximum relative error of     0.1224E-15 =    2 ** -52.86
    occurred for Z =     0.100400E+04    -0.100000E+04
    with a value of      0.725633E+01    -0.783402E+00
 The estimated loss of base   2 significant digits is   0.14


 The root mean square relative error was     0.3388E-16 =    2 ** -54.71
 The estimated loss of base   2 significant digits is   0.00


 Then, report the error in the imaginary component.


 Test function was larger   203 times,
                   agreed  1566 times, and
              was smaller   231 times.


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


 The maximum relative error of     0.2260E-15 =    2 ** -51.97
    occurred for Z =     0.186900E+04    -0.100000E+04
    with a value of      0.765903E+01    -0.491289E+00
 The estimated loss of base   2 significant digits is   1.03


 The root mean square relative error was     0.7658E-16 =    2 ** -53.54
 The estimated loss of base   2 significant digits is   0.00


 Test of LOG(Z) vs LOG(Z*Z)/2


   2000 Random arguments were tested from the box
      (     0.2220E-15,     0.2500E+00)
      (    -0.2220E-15,    -0.2500E+00)


 First, report the vector error


 Test function was larger     0 times,
                   agreed  1914 times, and
              was smaller    86 times.


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


 The maximum relative error of     0.2194E-15 =    2 ** -52.02
    occurred for Z =     0.132125E+00    -0.222045E-15
    with a value of     -0.202401E+01    -0.168056E-14
 The estimated loss of base   2 significant digits is   0.98


 The root mean square relative error was     0.3197E-16 =    2 ** -54.80
 The estimated loss of base   2 significant digits is   0.00


 Then, report the error in the real component.


 Test function was larger    34 times,
                   agreed  1914 times, and
              was smaller    52 times.


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


 The maximum relative error of     0.2194E-15 =    2 ** -52.02
    occurred for Z =     0.132125E+00    -0.222045E-15
    with a value of     -0.202401E+01    -0.168056E-14
 The estimated loss of base   2 significant digits is   0.98


 The root mean square relative error was     0.3197E-16 =    2 ** -54.80
 The estimated loss of base   2 significant digits is   0.00


 Then, report the error in the imaginary component.


 Test function was larger     0 times,
                   agreed  2000 times, and
              was smaller     0 times.


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


 The maximum relative error of     0.0000E+00 =    2 **-999.00
    occurred for Z =     0.000000E+00     0.000000E+00
    with a value of      0.000000E+00     0.000000E+00
 The estimated loss of base   2 significant digits is   0.00


 The root mean square relative error was     0.0000E+00 =    2 **-999.00
 The estimated loss of base   2 significant digits is   0.00


 Special tests


 The identity  LOG(Z) = -LOG(1/Z)  will be tested.

               Z                      LOG(Z) + LOG(1/Z)

  0.0000000E+00  0.0000000E+00??????????????????????????????

  0.0000000E+00  0.0000000E+00??????????????????????????????

  0.0000000E+00  0.0000000E+00??????????????????????????????

  0.0000000E+00  0.0000000E+00??????????????????????????????

  0.0000000E+00  0.0000000E+00??????????????????????????????



 Test of special arguments


 LOG(1.0,0.0) = (  0.0000000E+00  0.0000000E+00)




 Tests near extreme arguments.  These should not, but may
 trigger error messages



 LOG will be called with the argument (     0.2225-307     0.2225-307)


 LOG(XMIN,XMIN) = LOG(  0.2225074-307  0.2225074-307) =
                                        ( -0.7080498E+03  0.7853982E+00)


 LOG will be called with the argument (     0.1798+309     0.1798+309)


 LOG(XMAX,XMAX) = LOG(  0.1797693+309  0.1797693+309) =
                                        (+++++++++++++++  0.7853982E+00)

 Test of error returns


 LOG will be called with the argument (     0.0000E+00     0.0000E+00)
 This should trigger an error message


 LOG returned the value (---------------     0.0000E+00)


 This concludes the tests
