Average Error: 0.0 → 0.0
Time: 2.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 r32126 = x;
        double r32127 = 1.0;
        double r32128 = r32126 + r32127;
        double r32129 = r32127 - r32126;
        double r32130 = r32128 / r32129;
        return r32130;
}

double f(double x) {
        double r32131 = x;
        double r32132 = 1.0;
        double r32133 = r32131 + r32132;
        double r32134 = r32132 - r32131;
        double r32135 = r32133 / r32134;
        return r32135;
}

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