Average Error: 0.0 → 0.0
Time: 1.7s
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 r289455 = x;
        double r289456 = y;
        double r289457 = r289456 + r289455;
        double r289458 = r289455 / r289457;
        return r289458;
}

double f(double x, double y) {
        double r289459 = x;
        double r289460 = y;
        double r289461 = r289460 + r289459;
        double r289462 = r289459 / r289461;
        return r289462;
}

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