Average Error: 0.0 → 0.0
Time: 13.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 r13496809 = x;
        double r13496810 = y;
        double r13496811 = r13496809 + r13496810;
        double r13496812 = r13496809 / r13496811;
        return r13496812;
}

double f(double x, double y) {
        double r13496813 = x;
        double r13496814 = y;
        double r13496815 = r13496814 + r13496813;
        double r13496816 = r13496813 / r13496815;
        return r13496816;
}

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