Average Error: 0.0 → 0.0
Time: 5.4s
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 r50372 = x;
        double r50373 = 1.0;
        double r50374 = r50372 + r50373;
        double r50375 = r50373 - r50372;
        double r50376 = r50374 / r50375;
        return r50376;
}

double f(double x) {
        double r50377 = x;
        double r50378 = 1.0;
        double r50379 = r50377 + r50378;
        double r50380 = r50378 - r50377;
        double r50381 = r50379 / r50380;
        return r50381;
}

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