Average Error: 0.0 → 0.0
Time: 3.7s
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 r166222 = x;
        double r166223 = y;
        double r166224 = r166222 + r166223;
        double r166225 = r166222 / r166224;
        return r166225;
}

double f(double x, double y) {
        double r166226 = x;
        double r166227 = y;
        double r166228 = r166226 + r166227;
        double r166229 = r166226 / r166228;
        return r166229;
}

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