Average Error: 0.0 → 0.0
Time: 5.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 r45678 = x;
        double r45679 = 1.0;
        double r45680 = r45678 + r45679;
        double r45681 = r45679 - r45678;
        double r45682 = r45680 / r45681;
        return r45682;
}

double f(double x) {
        double r45683 = x;
        double r45684 = 1.0;
        double r45685 = r45683 + r45684;
        double r45686 = r45684 - r45683;
        double r45687 = r45685 / r45686;
        return r45687;
}

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