Average Error: 0.0 → 0.0
Time: 5.1s
Precision: 64
\[\frac{x}{y + x}\]
\[\frac{x}{y + x}\]
\frac{x}{y + x}
\frac{x}{y + x}
double f(double x, double y) {
        double r281723 = x;
        double r281724 = y;
        double r281725 = r281724 + r281723;
        double r281726 = r281723 / r281725;
        return r281726;
}

double f(double x, double y) {
        double r281727 = x;
        double r281728 = y;
        double r281729 = r281728 + r281727;
        double r281730 = r281727 / r281729;
        return r281730;
}

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}{y + x}\]
  2. Final simplification0.0

    \[\leadsto \frac{x}{y + x}\]

Reproduce

herbie shell --seed 2020060 +o rules:numerics
(FPCore (x y)
  :name "AI.Clustering.Hierarchical.Internal:average from clustering-0.2.1, B"
  :precision binary64
  (/ x (+ y x)))