\frac{x \cdot y}{y + 1}\frac{y}{y + 1} \cdot xdouble f(double x, double y) {
double r482761 = x;
double r482762 = y;
double r482763 = r482761 * r482762;
double r482764 = 1.0;
double r482765 = r482762 + r482764;
double r482766 = r482763 / r482765;
return r482766;
}
double f(double x, double y) {
double r482767 = y;
double r482768 = 1.0;
double r482769 = r482767 + r482768;
double r482770 = r482767 / r482769;
double r482771 = x;
double r482772 = r482770 * r482771;
return r482772;
}




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