Average Error: 0.0 → 0.0
Time: 7.3s
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 r162472 = x;
        double r162473 = y;
        double r162474 = r162473 + r162472;
        double r162475 = r162472 / r162474;
        return r162475;
}

double f(double x, double y) {
        double r162476 = x;
        double r162477 = y;
        double r162478 = r162477 + r162476;
        double r162479 = r162476 / r162478;
        return r162479;
}

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