Average Error: 0.0 → 0.0
Time: 17.5s
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 r266982 = x;
        double r266983 = y;
        double r266984 = r266982 + r266983;
        double r266985 = r266982 / r266984;
        return r266985;
}

double f(double x, double y) {
        double r266986 = x;
        double r266987 = y;
        double r266988 = r266986 + r266987;
        double r266989 = r266986 / r266988;
        return r266989;
}

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