Average Error: 0.0 → 0.0
Time: 9.2s
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 r13593045 = x;
        double r13593046 = y;
        double r13593047 = r13593045 + r13593046;
        double r13593048 = r13593045 / r13593047;
        return r13593048;
}

double f(double x, double y) {
        double r13593049 = x;
        double r13593050 = y;
        double r13593051 = r13593050 + r13593049;
        double r13593052 = r13593049 / r13593051;
        return r13593052;
}

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