Average Error: 0.0 → 0.0
Time: 22.2s
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 r14042398 = x;
        double r14042399 = y;
        double r14042400 = r14042398 + r14042399;
        double r14042401 = r14042398 / r14042400;
        return r14042401;
}

double f(double x, double y) {
        double r14042402 = x;
        double r14042403 = y;
        double r14042404 = r14042403 + r14042402;
        double r14042405 = r14042402 / r14042404;
        return r14042405;
}

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