Average Error: 0 → 0
Time: 900.0ms
Precision: 64
\[\frac{x}{x + y}\]
\[\frac{x}{x + y}\]
\frac{x}{x + y}
\frac{x}{x + y}
double f(double x, double y) {
        double r1307684 = x;
        double r1307685 = y;
        double r1307686 = r1307684 + r1307685;
        double r1307687 = r1307684 / r1307686;
        return r1307687;
}

double f(double x, double y) {
        double r1307688 = x;
        double r1307689 = y;
        double r1307690 = r1307688 + r1307689;
        double r1307691 = r1307688 / r1307690;
        return r1307691;
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0

    \[\frac{x}{x + y}\]
  2. Final simplification0

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

Reproduce

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