x + \frac{x - y}{2}x + \frac{x - y}{2}double f(double x, double y) {
double r368368 = x;
double r368369 = y;
double r368370 = r368368 - r368369;
double r368371 = 2.0;
double r368372 = r368370 / r368371;
double r368373 = r368368 + r368372;
return r368373;
}
double f(double x, double y) {
double r368374 = x;
double r368375 = y;
double r368376 = r368374 - r368375;
double r368377 = 2.0;
double r368378 = r368376 / r368377;
double r368379 = r368374 + r368378;
return r368379;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.1 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
Initial program 0.1
Final simplification0.1
herbie shell --seed 2019196
(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)))