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 r18419 = x;
        double r18420 = 1.0;
        double r18421 = r18419 + r18420;
        double r18422 = r18420 - r18419;
        double r18423 = r18421 / r18422;
        return r18423;
}

double f(double x) {
        double r18424 = x;
        double r18425 = 1.0;
        double r18426 = r18424 + r18425;
        double r18427 = r18425 - r18424;
        double r18428 = r18426 / r18427;
        return r18428;
}

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