Average Error: 0.0 → 0.0
Time: 8.3s
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 r333896 = x;
        double r333897 = y;
        double r333898 = r333896 + r333897;
        double r333899 = r333896 / r333898;
        return r333899;
}

double f(double x, double y) {
        double r333900 = x;
        double r333901 = y;
        double r333902 = r333900 + r333901;
        double r333903 = r333900 / r333902;
        return r333903;
}

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