\frac{x \cdot y}{y + 1}x \cdot \frac{y}{y + 1}double f(double x, double y) {
double r492986 = x;
double r492987 = y;
double r492988 = r492986 * r492987;
double r492989 = 1.0;
double r492990 = r492987 + r492989;
double r492991 = r492988 / r492990;
return r492991;
}
double f(double x, double y) {
double r492992 = x;
double r492993 = y;
double r492994 = 1.0;
double r492995 = r492993 + r492994;
double r492996 = r492993 / r492995;
double r492997 = r492992 * r492996;
return r492997;
}




Bits error versus x




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