Average Error: 0.0 → 0.0
Time: 9.7s
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 r18280562 = x;
        double r18280563 = y;
        double r18280564 = r18280562 + r18280563;
        double r18280565 = r18280562 / r18280564;
        return r18280565;
}

double f(double x, double y) {
        double r18280566 = x;
        double r18280567 = y;
        double r18280568 = r18280566 + r18280567;
        double r18280569 = r18280566 / r18280568;
        return r18280569;
}

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