Average Error: 0.0 → 0.0
Time: 1.8s
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 r44204 = x;
        double r44205 = 1.0;
        double r44206 = r44204 + r44205;
        double r44207 = r44205 - r44204;
        double r44208 = r44206 / r44207;
        return r44208;
}

double f(double x) {
        double r44209 = x;
        double r44210 = 1.0;
        double r44211 = r44209 + r44210;
        double r44212 = r44210 - r44209;
        double r44213 = r44211 / r44212;
        return r44213;
}

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