Average Error: 0.0 → 0.0
Time: 1.4s
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 r262686 = x;
        double r262687 = y;
        double r262688 = r262686 + r262687;
        double r262689 = r262686 / r262688;
        return r262689;
}

double f(double x, double y) {
        double r262690 = x;
        double r262691 = y;
        double r262692 = r262690 + r262691;
        double r262693 = r262690 / r262692;
        return r262693;
}

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