Average Error: 0 → 0
Time: 741.0ms
Precision: 64
\[\frac{1000000001 + 10^{9}}{x}\]
\[\frac{1000000001 + 10^{9}}{x}\]
\frac{1000000001 + 10^{9}}{x}
\frac{1000000001 + 10^{9}}{x}
double f(double x) {
        double r1743646 = 1000000001.0;
        double r1743647 = 1000000000.0;
        double r1743648 = r1743646 + r1743647;
        double r1743649 = x;
        double r1743650 = r1743648 / r1743649;
        return r1743650;
}

double f(double x) {
        double r1743651 = 1000000001.0;
        double r1743652 = 1000000000.0;
        double r1743653 = r1743651 + r1743652;
        double r1743654 = x;
        double r1743655 = r1743653 / r1743654;
        return r1743655;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0

    \[\frac{1000000001 + 10^{9}}{x}\]
  2. Final simplification0

    \[\leadsto \frac{1000000001 + 10^{9}}{x}\]

Reproduce

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