\frac{x \cdot y}{y + 1.0}\frac{y}{y + 1.0} \cdot xdouble f(double x, double y) {
double r32687203 = x;
double r32687204 = y;
double r32687205 = r32687203 * r32687204;
double r32687206 = 1.0;
double r32687207 = r32687204 + r32687206;
double r32687208 = r32687205 / r32687207;
return r32687208;
}
double f(double x, double y) {
double r32687209 = y;
double r32687210 = 1.0;
double r32687211 = r32687209 + r32687210;
double r32687212 = r32687209 / r32687211;
double r32687213 = x;
double r32687214 = r32687212 * r32687213;
return r32687214;
}




Bits error versus x




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