\frac{x \cdot y}{y + 1.0}\frac{y}{y + 1.0} \cdot xdouble f(double x, double y) {
double r27556029 = x;
double r27556030 = y;
double r27556031 = r27556029 * r27556030;
double r27556032 = 1.0;
double r27556033 = r27556030 + r27556032;
double r27556034 = r27556031 / r27556033;
return r27556034;
}
double f(double x, double y) {
double r27556035 = y;
double r27556036 = 1.0;
double r27556037 = r27556035 + r27556036;
double r27556038 = r27556035 / r27556037;
double r27556039 = x;
double r27556040 = r27556038 * r27556039;
return r27556040;
}




Bits error versus x




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