Average Error: 0.0 → 0.0
Time: 2.0s
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 r265203 = x;
        double r265204 = y;
        double r265205 = r265204 + r265203;
        double r265206 = r265203 / r265205;
        return r265206;
}

double f(double x, double y) {
        double r265207 = x;
        double r265208 = y;
        double r265209 = r265208 + r265207;
        double r265210 = r265207 / r265209;
        return r265210;
}

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