Average Error: 0.0 → 0.0
Time: 1.6s
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 r30333 = x;
        double r30334 = 1.0;
        double r30335 = r30333 + r30334;
        double r30336 = r30334 - r30333;
        double r30337 = r30335 / r30336;
        return r30337;
}

double f(double x) {
        double r30338 = x;
        double r30339 = 1.0;
        double r30340 = r30338 + r30339;
        double r30341 = r30339 - r30338;
        double r30342 = r30340 / r30341;
        return r30342;
}

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