Average Error: 0.0 → 0.0
Time: 12.2s
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 r266764 = x;
        double r266765 = y;
        double r266766 = r266765 + r266764;
        double r266767 = r266764 / r266766;
        return r266767;
}

double f(double x, double y) {
        double r266768 = x;
        double r266769 = y;
        double r266770 = r266769 + r266768;
        double r266771 = r266768 / r266770;
        return r266771;
}

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