Average Error: 0.0 → 0.0
Time: 4.5s
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 r277858 = x;
        double r277859 = y;
        double r277860 = r277858 + r277859;
        double r277861 = r277858 / r277860;
        return r277861;
}

double f(double x, double y) {
        double r277862 = x;
        double r277863 = y;
        double r277864 = r277862 + r277863;
        double r277865 = r277862 / r277864;
        return r277865;
}

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