Average Error: 0.0 → 0.0
Time: 10.6s
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 r239186 = x;
        double r239187 = y;
        double r239188 = r239187 + r239186;
        double r239189 = r239186 / r239188;
        return r239189;
}

double f(double x, double y) {
        double r239190 = x;
        double r239191 = y;
        double r239192 = r239191 + r239190;
        double r239193 = r239190 / r239192;
        return r239193;
}

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