Average Error: 0.0 → 0.0
Time: 8.0s
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 r236425 = x;
        double r236426 = y;
        double r236427 = r236425 + r236426;
        double r236428 = r236425 / r236427;
        return r236428;
}

double f(double x, double y) {
        double r236429 = x;
        double r236430 = y;
        double r236431 = r236429 + r236430;
        double r236432 = r236429 / r236431;
        return r236432;
}

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