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 r283314 = x;
        double r283315 = y;
        double r283316 = r283315 + r283314;
        double r283317 = r283314 / r283316;
        return r283317;
}

double f(double x, double y) {
        double r283318 = x;
        double r283319 = y;
        double r283320 = r283319 + r283318;
        double r283321 = r283318 / r283320;
        return r283321;
}

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