Average Error: 0.0 → 0.0
Time: 1.8s
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 r222394 = x;
        double r222395 = y;
        double r222396 = r222395 + r222394;
        double r222397 = r222394 / r222396;
        return r222397;
}

double f(double x, double y) {
        double r222398 = x;
        double r222399 = y;
        double r222400 = r222399 + r222398;
        double r222401 = r222398 / r222400;
        return r222401;
}

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