\frac{x \cdot y}{y + 1}\frac{y}{1 + y} \cdot xdouble f(double x, double y) {
double r29198004 = x;
double r29198005 = y;
double r29198006 = r29198004 * r29198005;
double r29198007 = 1.0;
double r29198008 = r29198005 + r29198007;
double r29198009 = r29198006 / r29198008;
return r29198009;
}
double f(double x, double y) {
double r29198010 = y;
double r29198011 = 1.0;
double r29198012 = r29198011 + r29198010;
double r29198013 = r29198010 / r29198012;
double r29198014 = x;
double r29198015 = r29198013 * r29198014;
return r29198015;
}




Bits error versus x




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