Average Error: 0.0 → 0.0
Time: 6.0s
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 r236926 = x;
        double r236927 = y;
        double r236928 = r236926 + r236927;
        double r236929 = r236926 / r236928;
        return r236929;
}

double f(double x, double y) {
        double r236930 = x;
        double r236931 = y;
        double r236932 = r236930 + r236931;
        double r236933 = r236930 / r236932;
        return r236933;
}

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