\frac{x \cdot y}{y + 1.0}\frac{y}{y + 1.0} \cdot xdouble f(double x, double y) {
double r23505170 = x;
double r23505171 = y;
double r23505172 = r23505170 * r23505171;
double r23505173 = 1.0;
double r23505174 = r23505171 + r23505173;
double r23505175 = r23505172 / r23505174;
return r23505175;
}
double f(double x, double y) {
double r23505176 = y;
double r23505177 = 1.0;
double r23505178 = r23505176 + r23505177;
double r23505179 = r23505176 / r23505178;
double r23505180 = x;
double r23505181 = r23505179 * r23505180;
return r23505181;
}




Bits error versus x




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