 Test of SIN(X) vs SIN(W+D), W = X-D, D = (1/16,1/16)


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


 First, report the vector error


 Test function was larger     0 times,
                   agreed   503 times, and
              was smaller  1497 times.


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


 The maximum relative error of     0.2609E-06 =    2 ** -21.87
    occurred for Z =     0.639063E-01     0.000000E+00
    with a value of      0.638628E-01     0.000000E+00
 The estimated loss of base   2 significant digits is   2.13


 The root mean square relative error was     0.7060E-07 =    2 ** -23.76
 The estimated loss of base   2 significant digits is   0.24


 Then, report the error in the real component.


 Test function was larger    21 times,
                   agreed   863 times, and
              was smaller  1116 times.


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


 The maximum relative error of     0.2368E-06 =    2 ** -22.01
    occurred for Z =     0.629688E-01     0.000000E+00
    with a value of      0.629271E-01     0.000000E+00
 The estimated loss of base   2 significant digits is   1.99


 The root mean square relative error was     0.6900E-07 =    2 ** -23.79
 The estimated loss of base   2 significant digits is   0.21


 Test of SIN(X) vs SIN(W+D), W = X-D, D = (1/16,1/16)


   2000 Random arguments were tested from the box
      (     0.1600E+02,     0.1700E+02)
      (     0.1600E+02,     0.1700E+02)


 First, report the vector error


 Test function was larger     0 times,
                   agreed   496 times, and
              was smaller  1504 times.


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


 The maximum relative error of     0.1591E-06 =    2 ** -22.58
    occurred for Z =     0.165752E+02     0.160000E+02
    with a value of     -0.338798E+07    -0.287443E+07
 The estimated loss of base   2 significant digits is   1.42


 The root mean square relative error was     0.5995E-07 =    2 ** -23.99
 The estimated loss of base   2 significant digits is   0.01


 Then, report the error in the real component.


 Test function was larger   110 times,
                   agreed   996 times, and
              was smaller   894 times.


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


 The maximum relative error of     0.2101E-06 =    2 ** -22.18
    occurred for Z =     0.162733E+02     0.160000E+02
    with a value of     -0.238033E+07    -0.375163E+07
 The estimated loss of base   2 significant digits is   1.82


 The root mean square relative error was     0.6164E-07 =    2 ** -23.95
 The estimated loss of base   2 significant digits is   0.05


 Then, report the error in the imaginary component.


 Test function was larger   156 times,
                   agreed   998 times, and
              was smaller   846 times.


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


 The maximum relative error of     0.2225E-06 =    2 ** -22.10
    occurred for Z =     0.167486E+02     0.160000E+02
    with a value of     -0.383312E+07    -0.224677E+07
 The estimated loss of base   2 significant digits is   1.90


 The root mean square relative error was     0.6233E-07 =    2 ** -23.94
 The estimated loss of base   2 significant digits is   0.06


 Test of COS(X) vs COS(W+D), W = X-D, D = (1/16,1/16)


   2000 Random arguments were tested from the box
      (     0.1600E+02,     0.1700E+02)
      (     0.1600E+02,     0.1700E+02)


 First, report the vector error


 Test function was larger     0 times,
                   agreed   496 times, and
              was smaller  1504 times.


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


 The maximum relative error of     0.1591E-06 =    2 ** -22.58
    occurred for Z =     0.165752E+02     0.160000E+02
    with a value of     -0.287443E+07     0.338798E+07
 The estimated loss of base   2 significant digits is   1.42


 The root mean square relative error was     0.5995E-07 =    2 ** -23.99
 The estimated loss of base   2 significant digits is   0.01


 Then, report the error in the real component.


 Test function was larger   156 times,
                   agreed   998 times, and
              was smaller   846 times.


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


 The maximum relative error of     0.2225E-06 =    2 ** -22.10
    occurred for Z =     0.167486E+02     0.160000E+02
    with a value of     -0.224677E+07     0.383312E+07
 The estimated loss of base   2 significant digits is   1.90


 The root mean square relative error was     0.6233E-07 =    2 ** -23.94
 The estimated loss of base   2 significant digits is   0.06


 Then, report the error in the imaginary component.


 Test function was larger   110 times,
                   agreed   996 times, and
              was smaller   894 times.


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


 The maximum relative error of     0.2101E-06 =    2 ** -22.18
    occurred for Z =     0.162733E+02     0.160000E+02
    with a value of     -0.375163E+07     0.238033E+07
 The estimated loss of base   2 significant digits is   1.82


 The root mean square relative error was     0.6164E-07 =    2 ** -23.95
 The estimated loss of base   2 significant digits is   0.05


 Special Tests


 If (-134163.3 1184.0) is not almost (-134163,1188),
              SIN has the wrong period.


 The identity   SIN(-Z) = -SIN(Z)   will be tested.

                X                       F(Z) + F(-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  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 the significance in the real or imaginary components near
 the zeros of the real sin or cos.

 SIN(  0.1100000E+02  0.1250000E+02) = ( -0.1341673E+06  0.5937899E+03)
 The estimated loss of base    2 digits in the imaginary component is    0.12
 This is acceptable

 SIN(  0.2200000E+02  0.1250000E+02) = ( -0.1187568E+04 -0.1341634E+06)
 The estimated loss of base    2 digits in the real component is    0.00
 This is acceptable

 Test of error returns


 SIN will be called with the argument (     0.1000E+01     0.8822E+02)
 This should not trigger an error message


 SIN returned the value (     0.8684E+38     0.5576E+38)



 SIN will be called with the argument (     0.1678E+08     0.1000E+01)
 This should trigger an error message


 SIN returned the value (    -0.1203E+01     0.7361E+00)



 SIN will be called with the argument (     0.1000E+01     0.1678E+08)
 This should trigger an error message


 SIN returned the value (++++++++++++++++++++++++++++++)



 This concludes the tests
