\frac{x \cdot y}{y + 1}\frac{y}{y + 1} \cdot xdouble f(double x, double y) {
double r31250123 = x;
double r31250124 = y;
double r31250125 = r31250123 * r31250124;
double r31250126 = 1.0;
double r31250127 = r31250124 + r31250126;
double r31250128 = r31250125 / r31250127;
return r31250128;
}
double f(double x, double y) {
double r31250129 = y;
double r31250130 = 1.0;
double r31250131 = r31250129 + r31250130;
double r31250132 = r31250129 / r31250131;
double r31250133 = x;
double r31250134 = r31250132 * r31250133;
return r31250134;
}




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