Average Error: 0.0 → 0.0
Time: 996.0ms
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 r31012 = x;
        double r31013 = 1.0;
        double r31014 = r31012 + r31013;
        double r31015 = r31013 - r31012;
        double r31016 = r31014 / r31015;
        return r31016;
}

double f(double x) {
        double r31017 = x;
        double r31018 = 1.0;
        double r31019 = r31017 + r31018;
        double r31020 = r31018 - r31017;
        double r31021 = r31019 / r31020;
        return r31021;
}

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