Average Error: 0.0 → 0.0
Time: 45.9s
Precision: 64
\[\frac{x}{y + x}\]
\[\frac{x}{x + y}\]
\frac{x}{y + x}
\frac{x}{x + y}
double f(double x, double y) {
        double r15984136 = x;
        double r15984137 = y;
        double r15984138 = r15984137 + r15984136;
        double r15984139 = r15984136 / r15984138;
        return r15984139;
}

double f(double x, double y) {
        double r15984140 = x;
        double r15984141 = y;
        double r15984142 = r15984140 + r15984141;
        double r15984143 = r15984140 / r15984142;
        return r15984143;
}

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}{y + x}\]
  2. Final simplification0.0

    \[\leadsto \frac{x}{x + y}\]

Reproduce

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