\frac{x \cdot y}{y + 1}x \cdot \frac{y}{y + 1}double f(double x, double y) {
double r694110 = x;
double r694111 = y;
double r694112 = r694110 * r694111;
double r694113 = 1.0;
double r694114 = r694111 + r694113;
double r694115 = r694112 / r694114;
return r694115;
}
double f(double x, double y) {
double r694116 = x;
double r694117 = y;
double r694118 = 1.0;
double r694119 = r694117 + r694118;
double r694120 = r694117 / r694119;
double r694121 = r694116 * r694120;
return r694121;
}




Bits error versus x




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