Average Error: 0.0 → 0.0
Time: 5.6s
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 r15719140 = x;
        double r15719141 = y;
        double r15719142 = r15719140 + r15719141;
        double r15719143 = r15719140 / r15719142;
        return r15719143;
}

double f(double x, double y) {
        double r15719144 = x;
        double r15719145 = y;
        double r15719146 = r15719145 + r15719144;
        double r15719147 = r15719144 / r15719146;
        return r15719147;
}

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