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 r335808 = x;
        double r335809 = y;
        double r335810 = r335809 + r335808;
        double r335811 = r335808 / r335810;
        return r335811;
}

double f(double x, double y) {
        double r335812 = x;
        double r335813 = y;
        double r335814 = r335813 + r335812;
        double r335815 = r335812 / r335814;
        return r335815;
}

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