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 r287677 = x;
        double r287678 = y;
        double r287679 = r287677 + r287678;
        double r287680 = r287677 / r287679;
        return r287680;
}

double f(double x, double y) {
        double r287681 = x;
        double r287682 = y;
        double r287683 = r287681 + r287682;
        double r287684 = r287681 / r287683;
        return r287684;
}

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