Average Error: 0.0 → 0.0
Time: 9.6s
Precision: 64
\[\frac{x}{x + y}\]
\[\frac{x}{x + y}\]
\frac{x}{x + y}
\frac{x}{x + y}
double f(double x, double y) {
        double r21432046 = x;
        double r21432047 = y;
        double r21432048 = r21432046 + r21432047;
        double r21432049 = r21432046 / r21432048;
        return r21432049;
}

double f(double x, double y) {
        double r21432050 = x;
        double r21432051 = y;
        double r21432052 = r21432050 + r21432051;
        double r21432053 = r21432050 / r21432052;
        return r21432053;
}

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}{x + y}\]

Reproduce

herbie shell --seed 2019174 
(FPCore (x y)
  :name "AI.Clustering.Hierarchical.Internal:average from clustering-0.2.1, A"
  (/ x (+ x y)))