Average Error: 0.0 → 0.0
Time: 7.8s
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 r266351 = x;
        double r266352 = y;
        double r266353 = r266351 + r266352;
        double r266354 = r266351 / r266353;
        return r266354;
}

double f(double x, double y) {
        double r266355 = x;
        double r266356 = y;
        double r266357 = r266355 + r266356;
        double r266358 = r266355 / r266357;
        return r266358;
}

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