\frac{x \cdot y}{y + 1}\frac{y}{y + 1} \cdot xdouble f(double x, double y) {
double r507585 = x;
double r507586 = y;
double r507587 = r507585 * r507586;
double r507588 = 1.0;
double r507589 = r507586 + r507588;
double r507590 = r507587 / r507589;
return r507590;
}
double f(double x, double y) {
double r507591 = y;
double r507592 = 1.0;
double r507593 = r507591 + r507592;
double r507594 = r507591 / r507593;
double r507595 = x;
double r507596 = r507594 * r507595;
return r507596;
}




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