\frac{x \cdot y}{y + 1}x \cdot \frac{y}{y + 1}double f(double x, double y) {
double r766235 = x;
double r766236 = y;
double r766237 = r766235 * r766236;
double r766238 = 1.0;
double r766239 = r766236 + r766238;
double r766240 = r766237 / r766239;
return r766240;
}
double f(double x, double y) {
double r766241 = x;
double r766242 = y;
double r766243 = 1.0;
double r766244 = r766242 + r766243;
double r766245 = r766242 / r766244;
double r766246 = r766241 * r766245;
return r766246;
}




Bits error versus x




Bits error versus y
Results
| Original | 8.4 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 8.4
rmApplied *-un-lft-identity8.4
Applied times-frac0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019209 +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.84827882972468) (- (/ x (* y y)) (- (/ x y) x)) (if (< y 6799310503.41891003) (/ (* x y) (+ y 1)) (- (/ x (* y y)) (- (/ x y) x))))
(/ (* x y) (+ y 1)))