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

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


 TANH(X) WAS LARGER515498 TIMES,
             AGREED1119435 TIMES, AND
        WAS SMALLER365067 TIMES.

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

 THE MAXIMUM RELATIVE ERROR OF     4.0687E-16 =    2 ** -51.13
    OCCURRED FOR X =         0.137290
 THE ESTIMATED LOSS OF BASE   2 SIGNIFICANT DIGITS IS   1.87


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

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


 TANH(X) WAS LARGER593525 TIMES,
             AGREED923821 TIMES, AND
        WAS SMALLER482654 TIMES.

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

 THE MAXIMUM RELATIVE ERROR OF     5.3510E-16 =    2 ** -50.73
    OCCURRED FOR X =         0.728974
 THE ESTIMATED LOSS OF BASE   2 SIGNIFICANT DIGITS IS   2.27


 THE ROOT MEAN SQUARE RELATIVE ERROR WAS     9.2724E-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.5253974            0.0

      0.3355704            0.0

      0.2877280            0.0

      0.7505767            0.0

      0.7619418            0.0

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


        X         X - F(X)

  3.7849861E-17            0.0

  1.8924930E-17            0.0

  9.4624653E-18            0.0

  4.7312326E-18            0.0

  2.3656163E-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
