Average Error: 0.0 → 0.0
Time: 5.9s
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 r44474 = x;
        double r44475 = 1.0;
        double r44476 = r44474 + r44475;
        double r44477 = r44475 - r44474;
        double r44478 = r44476 / r44477;
        return r44478;
}

double f(double x) {
        double r44479 = x;
        double r44480 = 1.0;
        double r44481 = r44479 + r44480;
        double r44482 = r44480 - r44479;
        double r44483 = r44481 / r44482;
        return r44483;
}

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