 This is ttanh: ELEFUNT in Java: version 1.00 of Wed May 29 17:12:35 2002

1TEST OF TANH(X) VS (TANH(X-1/8)+TANH(1/8))/(1+TANH(X-1/8)TANH(1/8))

   2000 RANDOM ARGUMENTS WERE TESTED FROM THE INTERVAL
      (          0.125,         0.5493)


 TANH(X) WAS LARGER   534 TIMES,
             AGREED  1104 TIMES, AND
        WAS SMALLER   362 TIMES.

 THERE ARE  53 BASE   2 SIGNIFICANT DIGITS IN A FLOATING-POINT NUMBER

 THE MAXIMUM RELATIVE ERROR OF     2.7545E-16 =    2 ** -51.69
    OCCURRED FOR X =         0.204319
 THE ESTIMATED LOSS OF BASE   2 SIGNIFICANT DIGITS IS   1.31


 THE ROOT MEAN SQUARE RELATIVE ERROR WAS     1.0377E-16 =    2 ** -53.10
 THE ESTIMATED LOSS OF BASE   2 SIGNIFICANT DIGITS IS   0.00


1TEST OF TANH(X) VS (TANH(X-1/8)+TANH(1/8))/(1+TANH(X-1/8)TANH(1/8))

   2000 RANDOM ARGUMENTS WERE TESTED FROM THE INTERVAL
      (         0.6743,        19.4081)


 TANH(X) WAS LARGER   574 TIMES,
             AGREED   943 TIMES, AND
        WAS SMALLER   483 TIMES.

 THERE ARE  53 BASE   2 SIGNIFICANT DIGITS IN A FLOATING-POINT NUMBER

 THE MAXIMUM RELATIVE ERROR OF     2.9002E-16 =    2 ** -51.61
    OCCURRED FOR X =         1.009616
 THE ESTIMATED LOSS OF BASE   2 SIGNIFICANT DIGITS IS   1.39


 THE ROOT MEAN SQUARE RELATIVE ERROR WAS     9.1634E-17 =    2 ** -53.28
 THE ESTIMATED LOSS OF BASE   2 SIGNIFICANT DIGITS IS   0.00


1SPECIAL TESTS

 THE IDENTITY   TANH(-X) = -TANH(X)   WILL BE TESTED.


        X         F(X) + F(-X)

      0.0555685            0.0

      0.2588942            0.0

      0.2233350            0.0

      0.6093917            0.0

      0.7458728            0.0

 THE IDENTITY TANH(X) = X , X SMALL, WILL BE TESTED.


        X         X - F(X)

  2.9291640E-17            0.0

  1.4645820E-17            0.0

  7.3229100E-18            0.0

  3.6614550E-18            0.0

  1.8307275E-18            0.0

 THE IDENTITY TANH(X) = 1 , X LARGE, WILL BE TESTED.


        X         1 - F(X)

     19.4081210            0.0

     23.4081210            0.0

     27.4081210            0.0

     31.4081210            0.0

     35.4081210            0.0

 TEST OF UNDERFLOW FOR VERY SMALL ARGUMENT.

       TANH(1.821831E-231) =1.821831E-231
 THE FUNCTION TANH WILL BE CALLED WITH THE ARGUMENT  1.7976931E308
       TANH( 1.797693E308) =          1.0
 THE FUNCTION TANH WILL BE CALLED WITH THE ARGUMENT 2.2250738E-308
       TANH(2.225073E-308) =2.225073E-308
 THE FUNCTION TANH WILL BE CALLED WITH THE ARGUMENT            0.0
       TANH(          0.0) =          0.0
 THIS CONCLUDES THE TESTS
