Average Error: 0.0 → 0.0
Time: 1.1s
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 r243203 = x;
        double r243204 = y;
        double r243205 = r243204 + r243203;
        double r243206 = r243203 / r243205;
        return r243206;
}

double f(double x, double y) {
        double r243207 = x;
        double r243208 = y;
        double r243209 = r243208 + r243207;
        double r243210 = r243207 / r243209;
        return r243210;
}

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