Average Error: 0.0 → 0.0
Time: 17.9s
Precision: 64
\[\frac{x}{y + x}\]
\[\frac{x}{y + x}\]
\frac{x}{y + x}
\frac{x}{y + x}
double f(double x, double y) {
        double r154232 = x;
        double r154233 = y;
        double r154234 = r154233 + r154232;
        double r154235 = r154232 / r154234;
        return r154235;
}

double f(double x, double y) {
        double r154236 = x;
        double r154237 = y;
        double r154238 = r154237 + r154236;
        double r154239 = r154236 / r154238;
        return r154239;
}

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}{y + x}\]
  2. Final simplification0.0

    \[\leadsto \frac{x}{y + x}\]

Reproduce

herbie shell --seed 2019322 +o rules:numerics
(FPCore (x y)
  :name "AI.Clustering.Hierarchical.Internal:average from clustering-0.2.1, B"
  :precision binary64
  (/ x (+ y x)))