Average Error: 0.0 → 0.0
Time: 750.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 r22244 = x;
        double r22245 = 1.0;
        double r22246 = r22244 + r22245;
        double r22247 = r22245 - r22244;
        double r22248 = r22246 / r22247;
        return r22248;
}

double f(double x) {
        double r22249 = x;
        double r22250 = 1.0;
        double r22251 = r22249 + r22250;
        double r22252 = r22250 - r22249;
        double r22253 = r22251 / r22252;
        return r22253;
}

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