Average Error: 0.0 → 0.0
Time: 7.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 r286309 = x;
        double r286310 = y;
        double r286311 = r286310 + r286309;
        double r286312 = r286309 / r286311;
        return r286312;
}

double f(double x, double y) {
        double r286313 = x;
        double r286314 = y;
        double r286315 = r286314 + r286313;
        double r286316 = r286313 / r286315;
        return r286316;
}

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