\frac{x \cdot y}{y + 1.0}\frac{y}{y + 1.0} \cdot xdouble f(double x, double y) {
double r28462719 = x;
double r28462720 = y;
double r28462721 = r28462719 * r28462720;
double r28462722 = 1.0;
double r28462723 = r28462720 + r28462722;
double r28462724 = r28462721 / r28462723;
return r28462724;
}
double f(double x, double y) {
double r28462725 = y;
double r28462726 = 1.0;
double r28462727 = r28462725 + r28462726;
double r28462728 = r28462725 / r28462727;
double r28462729 = x;
double r28462730 = r28462728 * r28462729;
return r28462730;
}




Bits error versus x




Bits error versus y
Results
| Original | 7.4 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 7.4
rmApplied *-un-lft-identity7.4
Applied times-frac0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019162 +o rules:numerics
(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)))