Average Error: 0.0 → 0.0
Time: 9.2s
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 r297310 = x;
        double r297311 = y;
        double r297312 = r297310 + r297311;
        double r297313 = r297310 / r297312;
        return r297313;
}

double f(double x, double y) {
        double r297314 = x;
        double r297315 = y;
        double r297316 = r297314 + r297315;
        double r297317 = r297314 / r297316;
        return r297317;
}

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.0

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

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

Reproduce

herbie shell --seed 2019326 
(FPCore (x y)
  :name "AI.Clustering.Hierarchical.Internal:average from clustering-0.2.1, A"
  :precision binary64
  (/ x (+ x y)))