\frac{x}{y + x}\frac{x}{x + y}(FPCore (x y) :precision binary64 (/ x (+ y x)))
(FPCore (x y) :precision binary64 (/ x (+ x y)))
double code(double x, double y) {
return (x / ((double) (y + x)));
}
double code(double x, double y) {
return (x / ((double) (x + y)));
}



Bits error versus x



Bits error versus y
Results
Initial program Error: 0.0 bits
Final simplificationError: 0.0 bits
herbie shell --seed 2020204
(FPCore (x y)
:name "AI.Clustering.Hierarchical.Internal:average from clustering-0.2.1, B"
:precision binary64
(/ x (+ y x)))