Average Error: 0.0 → 0.0
Time: 13.3s
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 r39410 = x;
        double r39411 = 1.0;
        double r39412 = r39410 + r39411;
        double r39413 = r39411 - r39410;
        double r39414 = r39412 / r39413;
        return r39414;
}

double f(double x) {
        double r39415 = x;
        double r39416 = 1.0;
        double r39417 = r39415 + r39416;
        double r39418 = r39416 - r39415;
        double r39419 = r39417 / r39418;
        return r39419;
}

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