Average Error: 0.0 → 0.0
Time: 7.5s
Precision: 64
\[\frac{x}{x + y}\]
\[\frac{x}{y + x}\]
\frac{x}{x + y}
\frac{x}{y + x}
double f(double x, double y) {
        double r15349720 = x;
        double r15349721 = y;
        double r15349722 = r15349720 + r15349721;
        double r15349723 = r15349720 / r15349722;
        return r15349723;
}

double f(double x, double y) {
        double r15349724 = x;
        double r15349725 = y;
        double r15349726 = r15349725 + r15349724;
        double r15349727 = r15349724 / r15349726;
        return r15349727;
}

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}{y + x}\]

Reproduce

herbie shell --seed 2019170 
(FPCore (x y)
  :name "AI.Clustering.Hierarchical.Internal:average from clustering-0.2.1, A"
  (/ x (+ x y)))