Average Error: 0.0 → 0.0
Time: 3.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 r398195 = x;
        double r398196 = y;
        double r398197 = r398195 + r398196;
        double r398198 = r398195 / r398197;
        return r398198;
}

double f(double x, double y) {
        double r398199 = x;
        double r398200 = y;
        double r398201 = r398199 + r398200;
        double r398202 = r398199 / r398201;
        return r398202;
}

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