Average Error: 0.0 → 0.0
Time: 313.0ms
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 r342486 = x;
        double r342487 = y;
        double r342488 = r342486 + r342487;
        double r342489 = r342486 / r342488;
        return r342489;
}

double f(double x, double y) {
        double r342490 = x;
        double r342491 = y;
        double r342492 = r342490 + r342491;
        double r342493 = r342490 / r342492;
        return r342493;
}

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