Average Error: 0.0 → 0.0
Time: 13.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 r182284 = x;
        double r182285 = y;
        double r182286 = r182284 + r182285;
        double r182287 = r182284 / r182286;
        return r182287;
}

double f(double x, double y) {
        double r182288 = x;
        double r182289 = y;
        double r182290 = r182288 + r182289;
        double r182291 = r182288 / r182290;
        return r182291;
}

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