Average Error: 0.0 → 0.0
Time: 4.7s
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 r36190 = x;
        double r36191 = 1.0;
        double r36192 = r36190 + r36191;
        double r36193 = r36191 - r36190;
        double r36194 = r36192 / r36193;
        return r36194;
}

double f(double x) {
        double r36195 = x;
        double r36196 = 1.0;
        double r36197 = r36195 + r36196;
        double r36198 = r36196 - r36195;
        double r36199 = r36197 / r36198;
        return r36199;
}

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