Average Error: 0.0 → 0.0
Time: 8.2s
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 r34854 = x;
        double r34855 = 1.0;
        double r34856 = r34854 + r34855;
        double r34857 = r34855 - r34854;
        double r34858 = r34856 / r34857;
        return r34858;
}

double f(double x) {
        double r34859 = x;
        double r34860 = 1.0;
        double r34861 = r34859 + r34860;
        double r34862 = r34860 - r34859;
        double r34863 = r34861 / r34862;
        return r34863;
}

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