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 r146296 = x;
        double r146297 = y;
        double r146298 = r146297 + r146296;
        double r146299 = r146296 / r146298;
        return r146299;
}

double f(double x, double y) {
        double r146300 = x;
        double r146301 = y;
        double r146302 = r146301 + r146300;
        double r146303 = r146300 / r146302;
        return r146303;
}

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