Average Error: 0.0 → 0.0
Time: 5.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 r255884 = x;
        double r255885 = y;
        double r255886 = r255884 + r255885;
        double r255887 = r255884 / r255886;
        return r255887;
}

double f(double x, double y) {
        double r255888 = x;
        double r255889 = y;
        double r255890 = r255889 + r255888;
        double r255891 = r255888 / r255890;
        return r255891;
}

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