Average Error: 0.0 → 0.0
Time: 959.0ms
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 r32581 = x;
        double r32582 = 1.0;
        double r32583 = r32581 + r32582;
        double r32584 = r32582 - r32581;
        double r32585 = r32583 / r32584;
        return r32585;
}

double f(double x) {
        double r32586 = x;
        double r32587 = 1.0;
        double r32588 = r32586 + r32587;
        double r32589 = r32587 - r32586;
        double r32590 = r32588 / r32589;
        return r32590;
}

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