Average Error: 0.0 → 0.0
Time: 1.7s
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 r272063 = x;
        double r272064 = y;
        double r272065 = r272064 + r272063;
        double r272066 = r272063 / r272065;
        return r272066;
}

double f(double x, double y) {
        double r272067 = x;
        double r272068 = y;
        double r272069 = r272068 + r272067;
        double r272070 = r272067 / r272069;
        return r272070;
}

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