Average Error: 0.0 → 0.0
Time: 5.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 r12026886 = x;
        double r12026887 = y;
        double r12026888 = r12026886 + r12026887;
        double r12026889 = r12026886 / r12026888;
        return r12026889;
}

double f(double x, double y) {
        double r12026890 = x;
        double r12026891 = y;
        double r12026892 = r12026891 + r12026890;
        double r12026893 = r12026890 / r12026892;
        return r12026893;
}

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