Average Error: 0.0 → 0.0
Time: 10.8s
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 r16835035 = x;
        double r16835036 = y;
        double r16835037 = r16835035 + r16835036;
        double r16835038 = r16835035 / r16835037;
        return r16835038;
}

double f(double x, double y) {
        double r16835039 = x;
        double r16835040 = y;
        double r16835041 = r16835040 + r16835039;
        double r16835042 = r16835039 / r16835041;
        return r16835042;
}

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