Average Error: 0.0 → 0.0
Time: 7.7s
Precision: 64
\[\frac{1}{x + 1}\]
\[\frac{1}{x + 1}\]
\frac{1}{x + 1}
\frac{1}{x + 1}
double f(double x) {
        double r1494380 = 1.0;
        double r1494381 = x;
        double r1494382 = r1494381 + r1494380;
        double r1494383 = r1494380 / r1494382;
        return r1494383;
}

double f(double x) {
        double r1494384 = 1.0;
        double r1494385 = x;
        double r1494386 = r1494385 + r1494384;
        double r1494387 = r1494384 / r1494386;
        return r1494387;
}

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{1}{x + 1}\]
  2. Final simplification0.0

    \[\leadsto \frac{1}{x + 1}\]

Reproduce

herbie shell --seed 1 
(FPCore (x)
  :name "1/(x+1)"
  :precision binary64
  (/ 1 (+ x 1)))