Average Error: 0.0 → 0.0
Time: 8.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 r228006 = x;
        double r228007 = y;
        double r228008 = r228006 + r228007;
        double r228009 = r228006 / r228008;
        return r228009;
}

double f(double x, double y) {
        double r228010 = x;
        double r228011 = y;
        double r228012 = r228010 + r228011;
        double r228013 = r228010 / r228012;
        return r228013;
}

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