 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))

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


 TANH(X) WAS LARGER 51565 TIMES,
             AGREED111760 TIMES, AND
        WAS SMALLER 36675 TIMES.

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

 THE MAXIMUM RELATIVE ERROR OF     3.8050E-16 =    2 ** -51.22
    OCCURRED FOR X =         0.146937
 THE ESTIMATED LOSS OF BASE   2 SIGNIFICANT DIGITS IS   1.78


 THE ROOT MEAN SQUARE RELATIVE ERROR WAS     1.0369E-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))

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


 TANH(X) WAS LARGER 59506 TIMES,
             AGREED 91974 TIMES, AND
        WAS SMALLER 48520 TIMES.

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

 THE MAXIMUM RELATIVE ERROR OF     3.7733E-16 =    2 ** -51.24
    OCCURRED FOR X =         0.675298
 THE ESTIMATED LOSS OF BASE   2 SIGNIFICANT DIGITS IS   1.76


 THE ROOT MEAN SQUARE RELATIVE ERROR WAS     9.2949E-17 =    2 ** -53.26
 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.3504695            0.0

      0.0866789            0.0

      0.3589288            0.0

      0.2636882            0.0

      0.1296007            0.0

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


        X         X - F(X)

  1.2973500E-18            0.0

  6.4867500E-19            0.0

  3.2433750E-19            0.0

  1.6216875E-19            0.0

  8.1084375E-20            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
