Average Error: 0.0 → 0.0
Time: 11.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 r176759 = x;
        double r176760 = y;
        double r176761 = r176759 + r176760;
        double r176762 = r176759 / r176761;
        return r176762;
}

double f(double x, double y) {
        double r176763 = x;
        double r176764 = y;
        double r176765 = r176763 + r176764;
        double r176766 = r176763 / r176765;
        return r176766;
}

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