\frac{x \cdot y}{y + 1}\frac{y}{y + 1} \cdot xdouble f(double x, double y) {
double r31110975 = x;
double r31110976 = y;
double r31110977 = r31110975 * r31110976;
double r31110978 = 1.0;
double r31110979 = r31110976 + r31110978;
double r31110980 = r31110977 / r31110979;
return r31110980;
}
double f(double x, double y) {
double r31110981 = y;
double r31110982 = 1.0;
double r31110983 = r31110981 + r31110982;
double r31110984 = r31110981 / r31110983;
double r31110985 = x;
double r31110986 = r31110984 * r31110985;
return r31110986;
}




Bits error versus x




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