Average Error: 0.0 → 0.0
Time: 1.6s
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 r42337 = x;
        double r42338 = 1.0;
        double r42339 = r42337 + r42338;
        double r42340 = r42338 - r42337;
        double r42341 = r42339 / r42340;
        return r42341;
}

double f(double x) {
        double r42342 = x;
        double r42343 = 1.0;
        double r42344 = r42342 + r42343;
        double r42345 = r42343 - r42342;
        double r42346 = r42344 / r42345;
        return r42346;
}

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