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 r248760 = x;
        double r248761 = y;
        double r248762 = r248761 + r248760;
        double r248763 = r248760 / r248762;
        return r248763;
}

double f(double x, double y) {
        double r248764 = x;
        double r248765 = y;
        double r248766 = r248765 + r248764;
        double r248767 = r248764 / r248766;
        return r248767;
}

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