Average Error: 0.0 → 0.0
Time: 3.1s
Precision: 64
\[\frac{x + 1}{1 - x}\]
\[\frac{x + 1}{1 - x}\]
\frac{x + 1}{1 - x}
\frac{x + 1}{1 - x}
double f(double x) {
        double r19937 = x;
        double r19938 = 1.0;
        double r19939 = r19937 + r19938;
        double r19940 = r19938 - r19937;
        double r19941 = r19939 / r19940;
        return r19941;
}

double f(double x) {
        double r19942 = x;
        double r19943 = 1.0;
        double r19944 = r19942 + r19943;
        double r19945 = r19943 - r19942;
        double r19946 = r19944 / r19945;
        return r19946;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[\frac{x + 1}{1 - x}\]
  2. Final simplification0.0

    \[\leadsto \frac{x + 1}{1 - x}\]

Reproduce

herbie shell --seed 2019304 
(FPCore (x)
  :name "Prelude:atanh from fay-base-0.20.0.1"
  :precision binary64
  (/ (+ x 1) (- 1 x)))