Average Error: 0.0 → 0.0
Time: 2.5s
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 r259262 = x;
        double r259263 = y;
        double r259264 = r259262 + r259263;
        double r259265 = r259262 / r259264;
        return r259265;
}

double f(double x, double y) {
        double r259266 = x;
        double r259267 = y;
        double r259268 = r259266 + r259267;
        double r259269 = r259266 / r259268;
        return r259269;
}

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