Average Error: 0.0 → 0.0
Time: 10.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 r331191 = x;
        double r331192 = y;
        double r331193 = r331191 + r331192;
        double r331194 = r331191 / r331193;
        return r331194;
}

double f(double x, double y) {
        double r331195 = x;
        double r331196 = y;
        double r331197 = r331195 + r331196;
        double r331198 = r331195 / r331197;
        return r331198;
}

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