Average Error: 0.0 → 0.0
Time: 1.8s
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 r25526 = x;
        double r25527 = 1.0;
        double r25528 = r25526 + r25527;
        double r25529 = r25527 - r25526;
        double r25530 = r25528 / r25529;
        return r25530;
}

double f(double x) {
        double r25531 = x;
        double r25532 = 1.0;
        double r25533 = r25531 + r25532;
        double r25534 = r25532 - r25531;
        double r25535 = r25533 / r25534;
        return r25535;
}

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