Average Error: 0.0 → 0.0
Time: 17.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 r167649 = x;
        double r167650 = y;
        double r167651 = r167649 + r167650;
        double r167652 = r167649 / r167651;
        return r167652;
}

double f(double x, double y) {
        double r167653 = x;
        double r167654 = y;
        double r167655 = r167653 + r167654;
        double r167656 = r167653 / r167655;
        return r167656;
}

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