\frac{x \cdot y}{y + 1}x \cdot \frac{y}{y + 1}double f(double x, double y) {
double r423998 = x;
double r423999 = y;
double r424000 = r423998 * r423999;
double r424001 = 1.0;
double r424002 = r423999 + r424001;
double r424003 = r424000 / r424002;
return r424003;
}
double f(double x, double y) {
double r424004 = x;
double r424005 = y;
double r424006 = 1.0;
double r424007 = r424005 + r424006;
double r424008 = r424005 / r424007;
double r424009 = r424004 * r424008;
return r424009;
}




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