\frac{x \cdot y}{y + 1.0}\frac{y}{y + 1.0} \cdot xdouble f(double x, double y) {
double r35182008 = x;
double r35182009 = y;
double r35182010 = r35182008 * r35182009;
double r35182011 = 1.0;
double r35182012 = r35182009 + r35182011;
double r35182013 = r35182010 / r35182012;
return r35182013;
}
double f(double x, double y) {
double r35182014 = y;
double r35182015 = 1.0;
double r35182016 = r35182014 + r35182015;
double r35182017 = r35182014 / r35182016;
double r35182018 = x;
double r35182019 = r35182017 * r35182018;
return r35182019;
}




Bits error versus x




Bits error versus y
Results
| Original | 7.9 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 7.9
rmApplied *-un-lft-identity7.9
Applied times-frac0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019165
(FPCore (x y)
:name "Diagrams.Trail:splitAtParam from diagrams-lib-1.3.0.3, B"
:herbie-target
(if (< y -3693.8482788297247) (- (/ x (* y y)) (- (/ x y) x)) (if (< y 6799310503.41891) (/ (* x y) (+ y 1.0)) (- (/ x (* y y)) (- (/ x y) x))))
(/ (* x y) (+ y 1.0)))