Average Error: 0.0 → 0.0
Time: 7.4s
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 r343876 = x;
        double r343877 = y;
        double r343878 = r343876 + r343877;
        double r343879 = r343876 / r343878;
        return r343879;
}

double f(double x, double y) {
        double r343880 = x;
        double r343881 = y;
        double r343882 = r343880 + r343881;
        double r343883 = r343880 / r343882;
        return r343883;
}

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