Average Error: 0.0 → 0.0
Time: 1.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 r240124 = x;
        double r240125 = y;
        double r240126 = r240124 + r240125;
        double r240127 = r240124 / r240126;
        return r240127;
}

double f(double x, double y) {
        double r240128 = x;
        double r240129 = y;
        double r240130 = r240128 + r240129;
        double r240131 = r240128 / r240130;
        return r240131;
}

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