Average Error: 0.0 → 0.0
Time: 16.3s
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 r186082 = x;
        double r186083 = y;
        double r186084 = r186083 + r186082;
        double r186085 = r186082 / r186084;
        return r186085;
}

double f(double x, double y) {
        double r186086 = x;
        double r186087 = y;
        double r186088 = r186087 + r186086;
        double r186089 = r186086 / r186088;
        return r186089;
}

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