Average Error: 0.0 → 0.0
Time: 6.5s
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 r27789 = x;
        double r27790 = 1.0;
        double r27791 = r27789 + r27790;
        double r27792 = r27790 - r27789;
        double r27793 = r27791 / r27792;
        return r27793;
}

double f(double x) {
        double r27794 = x;
        double r27795 = 1.0;
        double r27796 = r27794 + r27795;
        double r27797 = r27795 - r27794;
        double r27798 = r27796 / r27797;
        return r27798;
}

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