Average Error: 0.0 → 0.0
Time: 13.5s
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 r39352 = x;
        double r39353 = 1.0;
        double r39354 = r39352 + r39353;
        double r39355 = r39353 - r39352;
        double r39356 = r39354 / r39355;
        return r39356;
}

double f(double x) {
        double r39357 = x;
        double r39358 = 1.0;
        double r39359 = r39357 + r39358;
        double r39360 = r39358 - r39357;
        double r39361 = r39359 / r39360;
        return r39361;
}

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)))