Average Error: 0.0 → 0.0
Time: 1.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 r34585 = x;
        double r34586 = 1.0;
        double r34587 = r34585 + r34586;
        double r34588 = r34586 - r34585;
        double r34589 = r34587 / r34588;
        return r34589;
}

double f(double x) {
        double r34590 = x;
        double r34591 = 1.0;
        double r34592 = r34590 + r34591;
        double r34593 = r34591 - r34590;
        double r34594 = r34592 / r34593;
        return r34594;
}

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