Average Error: 0.0 → 0.0
Time: 1.1s
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 r269092 = x;
        double r269093 = y;
        double r269094 = r269092 + r269093;
        double r269095 = r269092 / r269094;
        return r269095;
}

double f(double x, double y) {
        double r269096 = x;
        double r269097 = y;
        double r269098 = r269096 + r269097;
        double r269099 = r269096 / r269098;
        return r269099;
}

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