Average Error: 0.0 → 0.0
Time: 10.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 r205842 = x;
        double r205843 = y;
        double r205844 = r205843 + r205842;
        double r205845 = r205842 / r205844;
        return r205845;
}

double f(double x, double y) {
        double r205846 = x;
        double r205847 = y;
        double r205848 = r205847 + r205846;
        double r205849 = r205846 / r205848;
        return r205849;
}

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