Average Error: 0.0 → 0.0
Time: 1.1s
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 r271444 = x;
        double r271445 = y;
        double r271446 = r271444 + r271445;
        double r271447 = r271444 / r271446;
        return r271447;
}

double f(double x, double y) {
        double r271448 = x;
        double r271449 = y;
        double r271450 = r271448 + r271449;
        double r271451 = r271448 / r271450;
        return r271451;
}

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