Average Error: 0.0 → 0.0
Time: 996.0ms
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 r287930 = x;
        double r287931 = y;
        double r287932 = r287930 + r287931;
        double r287933 = r287930 / r287932;
        return r287933;
}

double f(double x, double y) {
        double r287934 = x;
        double r287935 = y;
        double r287936 = r287934 + r287935;
        double r287937 = r287934 / r287936;
        return r287937;
}

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