Average Error: 0.0 → 0.0
Time: 7.3s
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 r527384 = x;
        double r527385 = y;
        double r527386 = r527384 + r527385;
        double r527387 = r527384 / r527386;
        return r527387;
}

double f(double x, double y) {
        double r527388 = x;
        double r527389 = y;
        double r527390 = r527388 + r527389;
        double r527391 = r527388 / r527390;
        return r527391;
}

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