Average Error: 0.0 → 0.0
Time: 1.7s
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 r269240 = x;
        double r269241 = y;
        double r269242 = r269240 + r269241;
        double r269243 = r269240 / r269242;
        return r269243;
}

double f(double x, double y) {
        double r269244 = x;
        double r269245 = y;
        double r269246 = r269244 + r269245;
        double r269247 = r269244 / r269246;
        return r269247;
}

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