Average Error: 0.0 → 0.0
Time: 13.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 r216131 = x;
        double r216132 = y;
        double r216133 = r216132 + r216131;
        double r216134 = r216131 / r216133;
        return r216134;
}

double f(double x, double y) {
        double r216135 = x;
        double r216136 = y;
        double r216137 = r216136 + r216135;
        double r216138 = r216135 / r216137;
        return r216138;
}

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