Average Error: 0.0 → 0.0
Time: 1.2s
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 r261500 = x;
        double r261501 = y;
        double r261502 = r261501 + r261500;
        double r261503 = r261500 / r261502;
        return r261503;
}

double f(double x, double y) {
        double r261504 = x;
        double r261505 = y;
        double r261506 = r261505 + r261504;
        double r261507 = r261504 / r261506;
        return r261507;
}

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