Average Error: 0.0 → 0.0
Time: 5.7s
Precision: 64
\[\frac{x}{x + y}\]
\[\frac{x}{y + x}\]
\frac{x}{x + y}
\frac{x}{y + x}
double f(double x, double y) {
        double r13598575 = x;
        double r13598576 = y;
        double r13598577 = r13598575 + r13598576;
        double r13598578 = r13598575 / r13598577;
        return r13598578;
}

double f(double x, double y) {
        double r13598579 = x;
        double r13598580 = y;
        double r13598581 = r13598580 + r13598579;
        double r13598582 = r13598579 / r13598581;
        return r13598582;
}

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}{y + x}\]

Reproduce

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