\frac{x \cdot y}{y + 1}x \cdot \frac{y}{y + 1}double f(double x, double y) {
double r398851 = x;
double r398852 = y;
double r398853 = r398851 * r398852;
double r398854 = 1.0;
double r398855 = r398852 + r398854;
double r398856 = r398853 / r398855;
return r398856;
}
double f(double x, double y) {
double r398857 = x;
double r398858 = y;
double r398859 = 1.0;
double r398860 = r398858 + r398859;
double r398861 = r398858 / r398860;
double r398862 = r398857 * r398861;
return r398862;
}




Bits error versus x




Bits error versus y
Results
| Original | 8.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 8.0
rmApplied *-un-lft-identity8.0
Applied times-frac0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019303 +o rules:numerics
(FPCore (x y)
:name "Diagrams.Trail:splitAtParam from diagrams-lib-1.3.0.3, B"
:precision binary64
:herbie-target
(if (< y -3693.84827882972468) (- (/ x (* y y)) (- (/ x y) x)) (if (< y 6799310503.41891003) (/ (* x y) (+ y 1)) (- (/ x (* y y)) (- (/ x y) x))))
(/ (* x y) (+ y 1)))