\frac{x \cdot y}{y + 1}\frac{y}{y + 1} \cdot xdouble f(double x, double y) {
double r29259721 = x;
double r29259722 = y;
double r29259723 = r29259721 * r29259722;
double r29259724 = 1.0;
double r29259725 = r29259722 + r29259724;
double r29259726 = r29259723 / r29259725;
return r29259726;
}
double f(double x, double y) {
double r29259727 = y;
double r29259728 = 1.0;
double r29259729 = r29259727 + r29259728;
double r29259730 = r29259727 / r29259729;
double r29259731 = x;
double r29259732 = r29259730 * r29259731;
return r29259732;
}




Bits error versus x




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