Average Error: 0.0 → 0.0
Time: 12.9s
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 r204873 = x;
        double r204874 = y;
        double r204875 = r204873 + r204874;
        double r204876 = r204873 / r204875;
        return r204876;
}

double f(double x, double y) {
        double r204877 = x;
        double r204878 = y;
        double r204879 = r204877 + r204878;
        double r204880 = r204877 / r204879;
        return r204880;
}

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