\frac{x \cdot y}{y + 1}x \cdot \frac{y}{y + 1}double f(double x, double y) {
double r687357 = x;
double r687358 = y;
double r687359 = r687357 * r687358;
double r687360 = 1.0;
double r687361 = r687358 + r687360;
double r687362 = r687359 / r687361;
return r687362;
}
double f(double x, double y) {
double r687363 = x;
double r687364 = y;
double r687365 = 1.0;
double r687366 = r687364 + r687365;
double r687367 = r687364 / r687366;
double r687368 = r687363 * r687367;
return r687368;
}




Bits error versus x




Bits error versus y
Results
| Original | 7.8 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 7.8
rmApplied *-un-lft-identity7.8
Applied times-frac0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2020062 +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)))