Average Error: 0.0 → 0.0
Time: 10.8s
Precision: 64
\[\frac{x}{y + x}\]
\[\frac{x}{y + x}\]
\frac{x}{y + x}
\frac{x}{y + x}
double f(double x, double y) {
        double r191594 = x;
        double r191595 = y;
        double r191596 = r191595 + r191594;
        double r191597 = r191594 / r191596;
        return r191597;
}

double f(double x, double y) {
        double r191598 = x;
        double r191599 = y;
        double r191600 = r191599 + r191598;
        double r191601 = r191598 / r191600;
        return r191601;
}

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}{y + x}\]
  2. Final simplification0.0

    \[\leadsto \frac{x}{y + x}\]

Reproduce

herbie shell --seed 2019212 +o rules:numerics
(FPCore (x y)
  :name "AI.Clustering.Hierarchical.Internal:average from clustering-0.2.1, B"
  :precision binary64
  (/ x (+ y x)))