Average Error: 0.0 → 0.0
Time: 6.7s
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 r44634 = x;
        double r44635 = 1.0;
        double r44636 = r44634 + r44635;
        double r44637 = r44635 - r44634;
        double r44638 = r44636 / r44637;
        return r44638;
}

double f(double x) {
        double r44639 = x;
        double r44640 = 1.0;
        double r44641 = r44639 + r44640;
        double r44642 = r44640 - r44639;
        double r44643 = r44641 / r44642;
        return r44643;
}

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