Average Error: 0.0 → 0.0
Time: 16.3s
Precision: 64
\[\frac{x}{x + y}\]
\[\frac{x}{y + x}\]
\frac{x}{x + y}
\frac{x}{y + x}
double f(double x, double y) {
        double r12610385 = x;
        double r12610386 = y;
        double r12610387 = r12610385 + r12610386;
        double r12610388 = r12610385 / r12610387;
        return r12610388;
}

double f(double x, double y) {
        double r12610389 = x;
        double r12610390 = y;
        double r12610391 = r12610390 + r12610389;
        double r12610392 = r12610389 / r12610391;
        return r12610392;
}

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}{y + x}\]

Reproduce

herbie shell --seed 2019168 
(FPCore (x y)
  :name "AI.Clustering.Hierarchical.Internal:average from clustering-0.2.1, A"
  (/ x (+ x y)))