Average Error: 0.0 → 0.0
Time: 11.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 r261638 = x;
        double r261639 = y;
        double r261640 = r261639 + r261638;
        double r261641 = r261638 / r261640;
        return r261641;
}

double f(double x, double y) {
        double r261642 = x;
        double r261643 = y;
        double r261644 = r261643 + r261642;
        double r261645 = r261642 / r261644;
        return r261645;
}

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