Average Error: 0.0 → 0.0
Time: 10.5s
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 r171475 = x;
        double r171476 = y;
        double r171477 = r171475 + r171476;
        double r171478 = r171475 / r171477;
        return r171478;
}

double f(double x, double y) {
        double r171479 = x;
        double r171480 = y;
        double r171481 = r171479 + r171480;
        double r171482 = r171479 / r171481;
        return r171482;
}

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