Average Error: 0.0 → 0.0
Time: 2.1s
Precision: 64
\[\frac{x}{x + y}\]
\[\frac{x}{x + y}\]
\frac{x}{x + y}
\frac{x}{x + y}
double f(double x, double y) {
        double r256660 = x;
        double r256661 = y;
        double r256662 = r256660 + r256661;
        double r256663 = r256660 / r256662;
        return r256663;
}

double f(double x, double y) {
        double r256664 = x;
        double r256665 = y;
        double r256666 = r256664 + r256665;
        double r256667 = r256664 / r256666;
        return r256667;
}

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}{x + y}\]
  2. Final simplification0.0

    \[\leadsto \frac{x}{x + y}\]

Reproduce

herbie shell --seed 2020081 
(FPCore (x y)
  :name "AI.Clustering.Hierarchical.Internal:average from clustering-0.2.1, A"
  :precision binary64
  (/ x (+ x y)))