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 r34109 = x;
        double r34110 = 1.0;
        double r34111 = r34109 + r34110;
        double r34112 = r34110 - r34109;
        double r34113 = r34111 / r34112;
        return r34113;
}

double f(double x) {
        double r34114 = x;
        double r34115 = 1.0;
        double r34116 = r34114 + r34115;
        double r34117 = r34115 - r34114;
        double r34118 = r34116 / r34117;
        return r34118;
}

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