Average Error: 0.0 → 0.0
Time: 4.3s
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 r277288 = x;
        double r277289 = y;
        double r277290 = r277288 + r277289;
        double r277291 = r277288 / r277290;
        return r277291;
}

double f(double x, double y) {
        double r277292 = x;
        double r277293 = y;
        double r277294 = r277292 + r277293;
        double r277295 = r277292 / r277294;
        return r277295;
}

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