 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   256 times, and
              was smaller  1744 times.


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


 The maximum relative error of     0.4467E-15 =    2 ** -50.99
    occurred for Z =     0.695313E-01     0.000000E+00
    with a value of      0.694752E-01     0.000000E+00
 The estimated loss of base   2 significant digits is   2.01


 The root mean square relative error was     0.1245E-15 =    2 ** -52.83
 The estimated loss of base   2 significant digits is   0.17


 Then, report the error in the real component.


 Test function was larger   922 times,
                   agreed  1022 times, and
              was smaller    56 times.


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


 The maximum relative error of     0.4283E-15 =    2 ** -51.05
    occurred for Z =     0.648438E-01     0.000000E+00
    with a value of      0.647983E-01     0.000000E+00
 The estimated loss of base   2 significant digits is   1.95


 The root mean square relative error was     0.1166E-15 =    2 ** -52.93
 The estimated loss of base   2 significant digits is   0.07


 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   135 times, and
              was smaller  1865 times.


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


 The maximum relative error of     0.3779E-15 =    2 ** -51.23
    occurred for Z =     0.166525E+02     0.160000E+02
    with a value of     -0.359988E+07    -0.260416E+07
 The estimated loss of base   2 significant digits is   1.77


 The root mean square relative error was     0.1562E-15 =    2 ** -52.51
 The estimated loss of base   2 significant digits is   0.49


 Then, report the error in the real component.


 Test function was larger  1627 times,
                   agreed   370 times, and
              was smaller     3 times.


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


 The maximum relative error of     0.5528E-15 =    2 ** -50.68
    occurred for Z =     0.163130E+02     0.160000E+02
    with a value of     -0.252718E+07    -0.365433E+07
 The estimated loss of base   2 significant digits is   2.32


 The root mean square relative error was     0.1771E-15 =    2 ** -52.33
 The estimated loss of base   2 significant digits is   0.67


 Then, report the error in the imaginary component.


 Test function was larger    56 times,
                   agreed   710 times, and
              was smaller  1234 times.


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


 The maximum relative error of     0.4362E-15 =    2 ** -51.03
    occurred for Z =     0.167775E+02     0.160000E+02
    with a value of     -0.389646E+07    -0.213502E+07
 The estimated loss of base   2 significant digits is   1.97


 The root mean square relative error was     0.1383E-15 =    2 ** -52.68
 The estimated loss of base   2 significant digits is   0.32


 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   141 times, and
              was smaller  1859 times.


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


 The maximum relative error of     0.4225E-15 =    2 ** -51.07
    occurred for Z =     0.169730E+02     0.160000E+02
    with a value of     -0.133744E+07     0.423698E+07
 The estimated loss of base   2 significant digits is   1.93


 The root mean square relative error was     0.1554E-15 =    2 ** -52.51
 The estimated loss of base   2 significant digits is   0.49


 Then, report the error in the real component.


 Test function was larger  1600 times,
                   agreed   394 times, and
              was smaller     6 times.


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


 The maximum relative error of     0.4439E-15 =    2 ** -51.00
    occurred for Z =     0.167870E+02     0.160000E+02
    with a value of     -0.209791E+07     0.391657E+07
 The estimated loss of base   2 significant digits is   2.00


 The root mean square relative error was     0.1787E-15 =    2 ** -52.31
 The estimated loss of base   2 significant digits is   0.69


 Then, report the error in the imaginary component.


 Test function was larger    38 times,
                   agreed   700 times, and
              was smaller  1262 times.


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


 The maximum relative error of     0.4396E-15 =    2 ** -51.01
    occurred for Z =     0.169730E+02     0.160000E+02
    with a value of     -0.133744E+07     0.423698E+07
 The estimated loss of base   2 significant digits is   1.99


 The root mean square relative error was     0.1368E-15 =    2 ** -52.70
 The estimated loss of base   2 significant digits is   0.30


 Special Tests


 If (-134163.4 1187.6) 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.00
 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.7093E+03)
 This should not trigger an error message


 SIN returned the value (     0.4588+308     0.2946+308)



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


 SIN returned the value (    -0.1310E+01    -0.6211E+00)



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


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



 This concludes the tests
