x + \frac{x - y}{2}x + \frac{x - y}{2}double f(double x, double y) {
double r412500 = x;
double r412501 = y;
double r412502 = r412500 - r412501;
double r412503 = 2.0;
double r412504 = r412502 / r412503;
double r412505 = r412500 + r412504;
return r412505;
}
double f(double x, double y) {
double r412506 = x;
double r412507 = y;
double r412508 = r412506 - r412507;
double r412509 = 2.0;
double r412510 = r412508 / r412509;
double r412511 = r412506 + r412510;
return r412511;
}




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 2019326
(FPCore (x y)
:name "Graphics.Rendering.Chart.Axis.Types:hBufferRect from Chart-1.5.3"
:precision binary64
:herbie-target
(- (* 1.5 x) (* 0.5 y))
(+ x (/ (- x y) 2)))