Average Error: 0.0 → 0.0
Time: 12.5s
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 r270137 = x;
        double r270138 = y;
        double r270139 = r270138 + r270137;
        double r270140 = r270137 / r270139;
        return r270140;
}

double f(double x, double y) {
        double r270141 = x;
        double r270142 = y;
        double r270143 = r270142 + r270141;
        double r270144 = r270141 / r270143;
        return r270144;
}

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