Average Error: 0.0 → 0.0
Time: 1.7s
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 r247602 = x;
        double r247603 = y;
        double r247604 = r247602 + r247603;
        double r247605 = r247602 / r247604;
        return r247605;
}

double f(double x, double y) {
        double r247606 = x;
        double r247607 = y;
        double r247608 = r247606 + r247607;
        double r247609 = r247606 / r247608;
        return r247609;
}

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