Average Error: 0.0 → 0.0
Time: 8.4s
Precision: 64
\[\frac{x}{x + y}\]
\[\frac{x}{y + x}\]
\frac{x}{x + y}
\frac{x}{y + x}
double f(double x, double y) {
        double r16882777 = x;
        double r16882778 = y;
        double r16882779 = r16882777 + r16882778;
        double r16882780 = r16882777 / r16882779;
        return r16882780;
}

double f(double x, double y) {
        double r16882781 = x;
        double r16882782 = y;
        double r16882783 = r16882782 + r16882781;
        double r16882784 = r16882781 / r16882783;
        return r16882784;
}

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}{y + x}\]

Reproduce

herbie shell --seed 2019163 
(FPCore (x y)
  :name "AI.Clustering.Hierarchical.Internal:average from clustering-0.2.1, A"
  (/ x (+ x y)))