Average Error: 0.0 → 0.0
Time: 6.5s
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 r12521839 = x;
        double r12521840 = y;
        double r12521841 = r12521839 + r12521840;
        double r12521842 = r12521839 / r12521841;
        return r12521842;
}

double f(double x, double y) {
        double r12521843 = x;
        double r12521844 = y;
        double r12521845 = r12521844 + r12521843;
        double r12521846 = r12521843 / r12521845;
        return r12521846;
}

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