Average Error: 0.0 → 0.0
Time: 1.7s
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 r236443 = x;
        double r236444 = y;
        double r236445 = r236443 + r236444;
        double r236446 = r236443 / r236445;
        return r236446;
}

double f(double x, double y) {
        double r236447 = x;
        double r236448 = y;
        double r236449 = r236447 + r236448;
        double r236450 = r236447 / r236449;
        return r236450;
}

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