\frac{x \cdot y}{y + 1}\frac{x}{\frac{y + 1}{y}}double f(double x, double y) {
double r602131 = x;
double r602132 = y;
double r602133 = r602131 * r602132;
double r602134 = 1.0;
double r602135 = r602132 + r602134;
double r602136 = r602133 / r602135;
return r602136;
}
double f(double x, double y) {
double r602137 = x;
double r602138 = y;
double r602139 = 1.0;
double r602140 = r602138 + r602139;
double r602141 = r602140 / r602138;
double r602142 = r602137 / r602141;
return r602142;
}




Bits error versus x




Bits error versus y
Results
| Original | 8.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.1 |
Initial program 8.0
rmApplied associate-/l*0.1
Final simplification0.1
herbie shell --seed 2020064
(FPCore (x y)
:name "Diagrams.Trail:splitAtParam from diagrams-lib-1.3.0.3, B"
:precision binary64
:herbie-target
(if (< y -3693.8482788297247) (- (/ x (* y y)) (- (/ x y) x)) (if (< y 6799310503.41891) (/ (* x y) (+ y 1)) (- (/ x (* y y)) (- (/ x y) x))))
(/ (* x y) (+ y 1)))