Average Error: 0.0 → 0.0
Time: 7.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 r218007 = x;
        double r218008 = y;
        double r218009 = r218007 + r218008;
        double r218010 = r218007 / r218009;
        return r218010;
}

double f(double x, double y) {
        double r218011 = x;
        double r218012 = y;
        double r218013 = r218011 + r218012;
        double r218014 = r218011 / r218013;
        return r218014;
}

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