Average Error: 0.0 → 0.0
Time: 8.1s
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 r28021 = x;
        double r28022 = 1.0;
        double r28023 = r28021 + r28022;
        double r28024 = r28022 - r28021;
        double r28025 = r28023 / r28024;
        return r28025;
}

double f(double x) {
        double r28026 = x;
        double r28027 = 1.0;
        double r28028 = r28026 + r28027;
        double r28029 = r28027 - r28026;
        double r28030 = r28028 / r28029;
        return r28030;
}

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