Average Error: 0.0 → 0.0
Time: 5.7s
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 r262728 = x;
        double r262729 = y;
        double r262730 = r262728 + r262729;
        double r262731 = r262728 / r262730;
        return r262731;
}

double f(double x, double y) {
        double r262732 = x;
        double r262733 = y;
        double r262734 = r262732 + r262733;
        double r262735 = r262732 / r262734;
        return r262735;
}

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)))