Average Error: 0.0 → 0.0
Time: 5.4s
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 r191895 = x;
        double r191896 = y;
        double r191897 = r191896 + r191895;
        double r191898 = r191895 / r191897;
        return r191898;
}

double f(double x, double y) {
        double r191899 = x;
        double r191900 = y;
        double r191901 = r191900 + r191899;
        double r191902 = r191899 / r191901;
        return r191902;
}

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