Average Error: 0.0 → 0.0
Time: 18.2s
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 r220361 = x;
        double r220362 = y;
        double r220363 = r220361 + r220362;
        double r220364 = r220361 / r220363;
        return r220364;
}

double f(double x, double y) {
        double r220365 = x;
        double r220366 = y;
        double r220367 = r220365 + r220366;
        double r220368 = r220365 / r220367;
        return r220368;
}

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