Average Error: 0.0 → 0.0
Time: 4.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 r294862 = x;
        double r294863 = y;
        double r294864 = r294863 + r294862;
        double r294865 = r294862 / r294864;
        return r294865;
}

double f(double x, double y) {
        double r294866 = x;
        double r294867 = y;
        double r294868 = r294867 + r294866;
        double r294869 = r294866 / r294868;
        return r294869;
}

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