Average Error: 0.0 → 0.0
Time: 8.0s
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 r15703560 = x;
        double r15703561 = y;
        double r15703562 = r15703560 + r15703561;
        double r15703563 = r15703560 / r15703562;
        return r15703563;
}

double f(double x, double y) {
        double r15703564 = x;
        double r15703565 = y;
        double r15703566 = r15703565 + r15703564;
        double r15703567 = r15703564 / r15703566;
        return r15703567;
}

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