Average Error: 0.0 → 0.0
Time: 5.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 r16145 = x;
        double r16146 = 1.0;
        double r16147 = r16145 + r16146;
        double r16148 = r16146 - r16145;
        double r16149 = r16147 / r16148;
        return r16149;
}

double f(double x) {
        double r16150 = x;
        double r16151 = 1.0;
        double r16152 = r16150 + r16151;
        double r16153 = r16151 - r16150;
        double r16154 = r16152 / r16153;
        return r16154;
}

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