\frac{x \cdot y}{y + 1}x \cdot \frac{y}{y + 1}double f(double x, double y) {
double r1166702 = x;
double r1166703 = y;
double r1166704 = r1166702 * r1166703;
double r1166705 = 1.0;
double r1166706 = r1166703 + r1166705;
double r1166707 = r1166704 / r1166706;
return r1166707;
}
double f(double x, double y) {
double r1166708 = x;
double r1166709 = y;
double r1166710 = 1.0;
double r1166711 = r1166709 + r1166710;
double r1166712 = r1166709 / r1166711;
double r1166713 = r1166708 * r1166712;
return r1166713;
}




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 2019306 +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)))