Average Error: 0.0 → 0.0
Time: 842.0ms
Precision: 64
\[\frac{x + 1}{1 - x}\]
\[\frac{1 + x}{1 - x}\]
\frac{x + 1}{1 - x}
\frac{1 + x}{1 - x}
double f(double x) {
        double r1145291 = x;
        double r1145292 = 1.0;
        double r1145293 = r1145291 + r1145292;
        double r1145294 = r1145292 - r1145291;
        double r1145295 = r1145293 / r1145294;
        return r1145295;
}

double f(double x) {
        double r1145296 = 1.0;
        double r1145297 = x;
        double r1145298 = r1145296 + r1145297;
        double r1145299 = r1145296 - r1145297;
        double r1145300 = r1145298 / r1145299;
        return r1145300;
}

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{1 + x}{1 - x}\]

Reproduce

herbie shell --seed 2019169 
(FPCore (x)
  :name "Prelude:atanh from fay-base-0.20.0.1"
  (/ (+ x 1.0) (- 1.0 x)))