Average Error: 0.0 → 0.0
Time: 4.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 r303659 = x;
        double r303660 = y;
        double r303661 = r303660 + r303659;
        double r303662 = r303659 / r303661;
        return r303662;
}

double f(double x, double y) {
        double r303663 = x;
        double r303664 = y;
        double r303665 = r303664 + r303663;
        double r303666 = r303663 / r303665;
        return r303666;
}

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