Average Error: 0.0 → 0.0
Time: 7.6s
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 r237667 = x;
        double r237668 = y;
        double r237669 = r237667 + r237668;
        double r237670 = r237667 / r237669;
        return r237670;
}

double f(double x, double y) {
        double r237671 = x;
        double r237672 = y;
        double r237673 = r237671 + r237672;
        double r237674 = r237671 / r237673;
        return r237674;
}

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