Average Error: 0.0 → 0.0
Time: 1.9s
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 r265325 = x;
        double r265326 = y;
        double r265327 = r265326 + r265325;
        double r265328 = r265325 / r265327;
        return r265328;
}

double f(double x, double y) {
        double r265329 = x;
        double r265330 = y;
        double r265331 = r265330 + r265329;
        double r265332 = r265329 / r265331;
        return r265332;
}

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