Average Error: 0.0 → 0.0
Time: 8.0s
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 r230253 = x;
        double r230254 = y;
        double r230255 = r230254 + r230253;
        double r230256 = r230253 / r230255;
        return r230256;
}

double f(double x, double y) {
        double r230257 = x;
        double r230258 = y;
        double r230259 = r230258 + r230257;
        double r230260 = r230257 / r230259;
        return r230260;
}

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