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 r312296 = x;
        double r312297 = y;
        double r312298 = r312296 + r312297;
        double r312299 = r312296 / r312298;
        return r312299;
}

double f(double x, double y) {
        double r312300 = x;
        double r312301 = y;
        double r312302 = r312300 + r312301;
        double r312303 = r312300 / r312302;
        return r312303;
}

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