Average Error: 0.0 → 0.0
Time: 2.0s
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 r18017 = x;
        double r18018 = 1.0;
        double r18019 = r18017 + r18018;
        double r18020 = r18018 - r18017;
        double r18021 = r18019 / r18020;
        return r18021;
}

double f(double x) {
        double r18022 = x;
        double r18023 = 1.0;
        double r18024 = r18022 + r18023;
        double r18025 = r18023 - r18022;
        double r18026 = r18024 / r18025;
        return r18026;
}

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