\frac{x \cdot y}{y + 1}x \cdot \frac{y}{y + 1}double f(double x, double y) {
double r765394 = x;
double r765395 = y;
double r765396 = r765394 * r765395;
double r765397 = 1.0;
double r765398 = r765395 + r765397;
double r765399 = r765396 / r765398;
return r765399;
}
double f(double x, double y) {
double r765400 = x;
double r765401 = y;
double r765402 = 1.0;
double r765403 = r765401 + r765402;
double r765404 = r765401 / r765403;
double r765405 = r765400 * r765404;
return r765405;
}




Bits error versus x




Bits error versus y
Results
| Original | 8.1 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 8.1
rmApplied *-un-lft-identity8.1
Applied times-frac0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2020047 +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.8482788297247) (- (/ x (* y y)) (- (/ x y) x)) (if (< y 6799310503.41891) (/ (* x y) (+ y 1)) (- (/ x (* y y)) (- (/ x y) x))))
(/ (* x y) (+ y 1)))