Average Error: 0.0 → 0.0
Time: 7.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 r22283 = x;
        double r22284 = 1.0;
        double r22285 = r22283 + r22284;
        double r22286 = r22284 - r22283;
        double r22287 = r22285 / r22286;
        return r22287;
}

double f(double x) {
        double r22288 = x;
        double r22289 = 1.0;
        double r22290 = r22288 + r22289;
        double r22291 = r22289 - r22288;
        double r22292 = r22290 / r22291;
        return r22292;
}

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