Average Error: 0.0 → 0.0
Time: 995.0ms
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 r35327 = x;
        double r35328 = 1.0;
        double r35329 = r35327 + r35328;
        double r35330 = r35328 - r35327;
        double r35331 = r35329 / r35330;
        return r35331;
}

double f(double x) {
        double r35332 = x;
        double r35333 = 1.0;
        double r35334 = r35332 + r35333;
        double r35335 = r35333 - r35332;
        double r35336 = r35334 / r35335;
        return r35336;
}

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 2020062 
(FPCore (x)
  :name "Prelude:atanh from fay-base-0.20.0.1"
  :precision binary64
  (/ (+ x 1) (- 1 x)))