Average Error: 0.0 → 0.0
Time: 1.1s
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 r27167 = x;
        double r27168 = 1.0;
        double r27169 = r27167 + r27168;
        double r27170 = r27168 - r27167;
        double r27171 = r27169 / r27170;
        return r27171;
}

double f(double x) {
        double r27172 = x;
        double r27173 = 1.0;
        double r27174 = r27172 + r27173;
        double r27175 = r27173 - r27172;
        double r27176 = r27174 / r27175;
        return r27176;
}

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