Average Error: 0.0 → 0.0
Time: 5.3s
Precision: 64
\[\frac{x}{x + y}\]
\[\frac{x}{y + x}\]
\frac{x}{x + y}
\frac{x}{y + x}
double f(double x, double y) {
        double r224415 = x;
        double r224416 = y;
        double r224417 = r224415 + r224416;
        double r224418 = r224415 / r224417;
        return r224418;
}

double f(double x, double y) {
        double r224419 = x;
        double r224420 = y;
        double r224421 = r224420 + r224419;
        double r224422 = r224419 / r224421;
        return r224422;
}

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}{y + x}\]

Reproduce

herbie shell --seed 2019194 
(FPCore (x y)
  :name "AI.Clustering.Hierarchical.Internal:average from clustering-0.2.1, A"
  (/ x (+ x y)))