Average Error: 0.0 → 0.0
Time: 7.8s
Precision: 64
\[\frac{1}{x + 1}\]
\[\frac{1}{x + 1}\]
\frac{1}{x + 1}
\frac{1}{x + 1}
double f(double x) {
        double r88386 = 1.0;
        double r88387 = x;
        double r88388 = r88387 + r88386;
        double r88389 = r88386 / r88388;
        return r88389;
}

double f(double x) {
        double r88390 = 1.0;
        double r88391 = x;
        double r88392 = r88391 + r88390;
        double r88393 = r88390 / r88392;
        return r88393;
}

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)))