Average Error: 0.0 → 0.0
Time: 892.0ms
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 r16184567 = x;
        double r16184568 = y;
        double r16184569 = r16184567 + r16184568;
        double r16184570 = r16184567 / r16184569;
        return r16184570;
}

double f(double x, double y) {
        double r16184571 = x;
        double r16184572 = y;
        double r16184573 = r16184572 + r16184571;
        double r16184574 = r16184571 / r16184573;
        return r16184574;
}

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 2019171 
(FPCore (x y)
  :name "AI.Clustering.Hierarchical.Internal:average from clustering-0.2.1, A"
  (/ x (+ x y)))