Average Error: 0.0 → 0.0
Time: 14.9s
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 r279026 = x;
        double r279027 = y;
        double r279028 = r279026 + r279027;
        double r279029 = r279026 / r279028;
        return r279029;
}

double f(double x, double y) {
        double r279030 = x;
        double r279031 = y;
        double r279032 = r279030 + r279031;
        double r279033 = r279030 / r279032;
        return r279033;
}

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