Average Error: 0.0 → 0.0
Time: 997.0ms
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 r298732 = x;
        double r298733 = y;
        double r298734 = r298732 + r298733;
        double r298735 = r298732 / r298734;
        return r298735;
}

double f(double x, double y) {
        double r298736 = x;
        double r298737 = y;
        double r298738 = r298736 + r298737;
        double r298739 = r298736 / r298738;
        return r298739;
}

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