\frac{x}{y \cdot 3}\frac{\frac{x}{3}}{y}double f(double x, double y) {
double r968526 = x;
double r968527 = y;
double r968528 = 3.0;
double r968529 = r968527 * r968528;
double r968530 = r968526 / r968529;
return r968530;
}
double f(double x, double y) {
double r968531 = x;
double r968532 = 3.0;
double r968533 = r968531 / r968532;
double r968534 = y;
double r968535 = r968533 / r968534;
return r968535;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.3 |
|---|---|
| Target | 0.3 |
| Herbie | 0.2 |
Initial program 0.3
rmApplied *-un-lft-identity0.3
Applied times-frac0.3
rmApplied *-un-lft-identity0.3
Applied *-un-lft-identity0.3
Applied times-frac0.3
Applied associate-*l*0.3
Simplified0.2
Final simplification0.2
herbie shell --seed 2020042 +o rules:numerics
(FPCore (x y)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, C"
:precision binary64
:herbie-target
(/ (/ x y) 3)
(/ x (* y 3)))