 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  1922 times, and
              was smaller    78 times.


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


 The maximum relative error of     0.1155E-06 =    2 ** -23.05
    occurred for Z =     0.787500E+01     0.000000E+00
    with a value of      0.206369E+01     0.000000E+00
 The estimated loss of base   2 significant digits is   0.95


 The root mean square relative error was     0.1659E-07 =    2 ** -25.84
 The estimated loss of base   2 significant digits is   0.00


 Then, report the error in the real component.


 Test function was larger    54 times,
                   agreed  1922 times, and
              was smaller    24 times.


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


 The maximum relative error of     0.1155E-06 =    2 ** -23.05
    occurred for Z =     0.787500E+01     0.000000E+00
    with a value of      0.206369E+01     0.000000E+00
 The estimated loss of base   2 significant digits is   0.95


 The root mean square relative error was     0.1659E-07 =    2 ** -25.84
 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  24 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  24.00


 The root mean square relative error was     0.1000E+01 =    2 **   0.00
 The estimated loss of base   2 significant digits is  24.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  1569 times, and
              was smaller   431 times.


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


 The maximum relative error of     0.6500E-07 =    2 ** -23.87
    occurred for Z =     0.108800E+04    -0.100000E+04
    with a value of      0.729828E+01    -0.743277E+00
 The estimated loss of base   2 significant digits is   0.13


 The root mean square relative error was     0.2297E-07 =    2 ** -25.38
 The estimated loss of base   2 significant digits is   0.00


 Then, report the error in the real component.


 Test function was larger   147 times,
                   agreed  1742 times, and
              was smaller   111 times.


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


 The maximum relative error of     0.6534E-07 =    2 ** -23.87
    occurred for Z =     0.108800E+04    -0.100000E+04
    with a value of      0.729828E+01    -0.743277E+00
 The estimated loss of base   2 significant digits is   0.13


 The root mean square relative error was     0.2293E-07 =    2 ** -25.38
 The estimated loss of base   2 significant digits is   0.00


 Then, report the error in the imaginary component.


 Test function was larger   158 times,
                   agreed  1763 times, and
              was smaller    79 times.


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


 The maximum relative error of     0.1189E-06 =    2 ** -23.00
    occurred for Z =     0.182400E+04    -0.100000E+04
    with a value of      0.764019E+01    -0.501495E+00
 The estimated loss of base   2 significant digits is   1.00


 The root mean square relative error was     0.3227E-07 =    2 ** -24.89
 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.1192E-06,     0.2500E+00)
      (    -0.1192E-06,    -0.2500E+00)


 First, report the vector error


 Test function was larger     0 times,
                   agreed  1822 times, and
              was smaller   178 times.


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


 The maximum relative error of     0.1157E-06 =    2 ** -23.04
    occurred for Z =     0.162354E-01    -0.119209E-06
    with a value of     -0.412056E+01    -0.734258E-05
 The estimated loss of base   2 significant digits is   0.96


 The root mean square relative error was     0.2345E-07 =    2 ** -25.35
 The estimated loss of base   2 significant digits is   0.00


 Then, report the error in the real component.


 Test function was larger    81 times,
                   agreed  1824 times, and
              was smaller    95 times.


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


 The maximum relative error of     0.1157E-06 =    2 ** -23.04
    occurred for Z =     0.162354E-01    -0.119209E-06
    with a value of     -0.412056E+01    -0.734258E-05
 The estimated loss of base   2 significant digits is   0.96


 The root mean square relative error was     0.2345E-07 =    2 ** -25.35
 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  1998 times, and
              was smaller     2 times.


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


 The maximum relative error of     0.7637E-07 =    2 ** -23.64
    occurred for Z =     0.625610E-03    -0.119209E-06
    with a value of     -0.737678E+01    -0.190549E-03
 The estimated loss of base   2 significant digits is   0.36


 The root mean square relative error was     0.2186E-08 =    2 ** -28.77
 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.1175E-37     0.1175E-37)


 LOG(XMIN,XMIN) = LOG(  0.1175494E-37  0.1175494E-37) =
                                        ( -0.8698997E+02  0.7853982E+00)


 LOG will be called with the argument (     0.3403E+39     0.3403E+39)


 LOG(XMAX,XMAX) = LOG(  0.3402823E+39  0.3402823E+39) =
                                        (+++++++++++++++  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
