Average Error: 0.0 → 0.0
Time: 8.0s
Precision: 64
\[\frac{x}{x + y}\]
\[\frac{x}{x + y}\]
\frac{x}{x + y}
\frac{x}{x + y}
double f(double x, double y) {
        double r173872 = x;
        double r173873 = y;
        double r173874 = r173872 + r173873;
        double r173875 = r173872 / r173874;
        return r173875;
}

double f(double x, double y) {
        double r173876 = x;
        double r173877 = y;
        double r173878 = r173876 + r173877;
        double r173879 = r173876 / r173878;
        return r173879;
}

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}{x + y}\]
  2. Final simplification0.0

    \[\leadsto \frac{x}{x + y}\]

Reproduce

herbie shell --seed 2019326 +o rules:numerics
(FPCore (x y)
  :name "AI.Clustering.Hierarchical.Internal:average from clustering-0.2.1, A"
  :precision binary64
  (/ x (+ x y)))