Average Error: 0.0 → 0.0
Time: 1.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 r204158 = x;
        double r204159 = y;
        double r204160 = r204159 + r204158;
        double r204161 = r204158 / r204160;
        return r204161;
}

double f(double x, double y) {
        double r204162 = x;
        double r204163 = y;
        double r204164 = r204163 + r204162;
        double r204165 = r204162 / r204164;
        return r204165;
}

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