\frac{x \cdot y}{y + 1}\frac{y}{y + 1} \cdot xdouble f(double x, double y) {
double r24040835 = x;
double r24040836 = y;
double r24040837 = r24040835 * r24040836;
double r24040838 = 1.0;
double r24040839 = r24040836 + r24040838;
double r24040840 = r24040837 / r24040839;
return r24040840;
}
double f(double x, double y) {
double r24040841 = y;
double r24040842 = 1.0;
double r24040843 = r24040841 + r24040842;
double r24040844 = r24040841 / r24040843;
double r24040845 = x;
double r24040846 = r24040844 * r24040845;
return r24040846;
}




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