Average Error: 0.0 → 0.0
Time: 5.1s
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 r251317 = x;
        double r251318 = y;
        double r251319 = r251317 + r251318;
        double r251320 = r251317 / r251319;
        return r251320;
}

double f(double x, double y) {
        double r251321 = x;
        double r251322 = y;
        double r251323 = r251322 + r251321;
        double r251324 = r251321 / r251323;
        return r251324;
}

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