Average Error: 0.0 → 0.0
Time: 789.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 r264576 = x;
        double r264577 = y;
        double r264578 = r264576 + r264577;
        double r264579 = r264576 / r264578;
        return r264579;
}

double f(double x, double y) {
        double r264580 = x;
        double r264581 = y;
        double r264582 = r264580 + r264581;
        double r264583 = r264580 / r264582;
        return r264583;
}

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