x + \frac{x - y}{2}\left(x + \frac{x}{2}\right) - \frac{y}{2}double f(double x, double y) {
double r402466 = x;
double r402467 = y;
double r402468 = r402466 - r402467;
double r402469 = 2.0;
double r402470 = r402468 / r402469;
double r402471 = r402466 + r402470;
return r402471;
}
double f(double x, double y) {
double r402472 = x;
double r402473 = 2.0;
double r402474 = r402472 / r402473;
double r402475 = r402472 + r402474;
double r402476 = y;
double r402477 = r402476 / r402473;
double r402478 = r402475 - r402477;
return r402478;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.1 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
Initial program 0.1
rmApplied div-sub0.1
Applied associate-+r-0.1
Simplified0.1
Final simplification0.1
herbie shell --seed 2019195
(FPCore (x y)
:name "Graphics.Rendering.Chart.Axis.Types:hBufferRect from Chart-1.5.3"
:herbie-target
(- (* 1.5 x) (* 0.5 y))
(+ x (/ (- x y) 2.0)))