Average Error: 0.0 → 0.0
Time: 9.9s
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 r300808 = x;
        double r300809 = y;
        double r300810 = r300809 + r300808;
        double r300811 = r300808 / r300810;
        return r300811;
}

double f(double x, double y) {
        double r300812 = x;
        double r300813 = y;
        double r300814 = r300813 + r300812;
        double r300815 = r300812 / r300814;
        return r300815;
}

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