Average Error: 0.0 → 0.0
Time: 1.1s
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 r229568 = x;
        double r229569 = y;
        double r229570 = r229568 + r229569;
        double r229571 = r229568 / r229570;
        return r229571;
}

double f(double x, double y) {
        double r229572 = x;
        double r229573 = y;
        double r229574 = r229572 + r229573;
        double r229575 = r229572 / r229574;
        return r229575;
}

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