Average Error: 0.0 → 0.0
Time: 7.4s
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 r23847 = x;
        double r23848 = 1.0;
        double r23849 = r23847 + r23848;
        double r23850 = r23848 - r23847;
        double r23851 = r23849 / r23850;
        return r23851;
}

double f(double x) {
        double r23852 = x;
        double r23853 = 1.0;
        double r23854 = r23852 + r23853;
        double r23855 = r23853 - r23852;
        double r23856 = r23854 / r23855;
        return r23856;
}

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