Average Error: 0.0 → 0.0
Time: 7.8s
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 r195963 = x;
        double r195964 = y;
        double r195965 = r195963 + r195964;
        double r195966 = r195963 / r195965;
        return r195966;
}

double f(double x, double y) {
        double r195967 = x;
        double r195968 = y;
        double r195969 = r195967 + r195968;
        double r195970 = r195967 / r195969;
        return r195970;
}

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