Average Error: 0.0 → 0.0
Time: 11.4s
Precision: 64
\[\frac{x}{x + y}\]
\[\frac{x}{x + y}\]
\frac{x}{x + y}
\frac{x}{x + y}
double f(double x, double y) {
        double r237153 = x;
        double r237154 = y;
        double r237155 = r237153 + r237154;
        double r237156 = r237153 / r237155;
        return r237156;
}

double f(double x, double y) {
        double r237157 = x;
        double r237158 = y;
        double r237159 = r237157 + r237158;
        double r237160 = r237157 / r237159;
        return r237160;
}

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

Reproduce

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