Average Error: 0.0 → 0.0
Time: 355.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 r282551 = x;
        double r282552 = y;
        double r282553 = r282551 + r282552;
        double r282554 = r282551 / r282553;
        return r282554;
}

double f(double x, double y) {
        double r282555 = x;
        double r282556 = y;
        double r282557 = r282555 + r282556;
        double r282558 = r282555 / r282557;
        return r282558;
}

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