Average Error: 0.0 → 0.0
Time: 3.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 r46560 = x;
        double r46561 = 1.0;
        double r46562 = r46560 + r46561;
        double r46563 = r46561 - r46560;
        double r46564 = r46562 / r46563;
        return r46564;
}

double f(double x) {
        double r46565 = x;
        double r46566 = 1.0;
        double r46567 = r46565 + r46566;
        double r46568 = r46566 - r46565;
        double r46569 = r46567 / r46568;
        return r46569;
}

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