Average Error: 0.0 → 0.0
Time: 2.6s
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 r5436245 = x;
        double r5436246 = y;
        double r5436247 = r5436245 + r5436246;
        double r5436248 = r5436245 / r5436247;
        return r5436248;
}

double f(double x, double y) {
        double r5436249 = x;
        double r5436250 = y;
        double r5436251 = r5436250 + r5436249;
        double r5436252 = r5436249 / r5436251;
        return r5436252;
}

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