Average Error: 0.0 → 0.0
Time: 5.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 r19441 = x;
        double r19442 = 1.0;
        double r19443 = r19441 + r19442;
        double r19444 = r19442 - r19441;
        double r19445 = r19443 / r19444;
        return r19445;
}

double f(double x) {
        double r19446 = x;
        double r19447 = 1.0;
        double r19448 = r19446 + r19447;
        double r19449 = r19447 - r19446;
        double r19450 = r19448 / r19449;
        return r19450;
}

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