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 r29062 = x;
        double r29063 = 1.0;
        double r29064 = r29062 + r29063;
        double r29065 = r29063 - r29062;
        double r29066 = r29064 / r29065;
        return r29066;
}

double f(double x) {
        double r29067 = x;
        double r29068 = 1.0;
        double r29069 = r29067 + r29068;
        double r29070 = r29068 - r29067;
        double r29071 = r29069 / r29070;
        return r29071;
}

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