Average Error: 0.0 → 0.0
Time: 1.1s
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 r274136 = x;
        double r274137 = y;
        double r274138 = r274136 + r274137;
        double r274139 = r274136 / r274138;
        return r274139;
}

double f(double x, double y) {
        double r274140 = x;
        double r274141 = y;
        double r274142 = r274140 + r274141;
        double r274143 = r274140 / r274142;
        return r274143;
}

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