Average Error: 0.0 → 0.0
Time: 16.4s
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 r176980 = x;
        double r176981 = y;
        double r176982 = r176981 + r176980;
        double r176983 = r176980 / r176982;
        return r176983;
}

double f(double x, double y) {
        double r176984 = x;
        double r176985 = y;
        double r176986 = r176985 + r176984;
        double r176987 = r176984 / r176986;
        return r176987;
}

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