\frac{x}{y \cdot 3}x \cdot \frac{\frac{1}{y}}{3}double f(double x, double y) {
double r568536 = x;
double r568537 = y;
double r568538 = 3.0;
double r568539 = r568537 * r568538;
double r568540 = r568536 / r568539;
return r568540;
}
double f(double x, double y) {
double r568541 = x;
double r568542 = 1.0;
double r568543 = y;
double r568544 = r568542 / r568543;
double r568545 = 3.0;
double r568546 = r568544 / r568545;
double r568547 = r568541 * r568546;
return r568547;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.3 |
|---|---|
| Target | 0.3 |
| Herbie | 0.3 |
Initial program 0.3
rmApplied associate-/r*0.3
rmApplied *-un-lft-identity0.3
Applied div-inv0.4
Applied times-frac0.3
Simplified0.3
Final simplification0.3
herbie shell --seed 2019303 +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)))