Average Error: 0.0 → 0.0
Time: 4.6s
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 r327065 = x;
        double r327066 = y;
        double r327067 = r327065 + r327066;
        double r327068 = r327065 / r327067;
        return r327068;
}

double f(double x, double y) {
        double r327069 = x;
        double r327070 = y;
        double r327071 = r327069 + r327070;
        double r327072 = r327069 / r327071;
        return r327072;
}

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