x + \frac{x - y}{2}x + \frac{x - y}{2}double f(double x, double y) {
double r544745 = x;
double r544746 = y;
double r544747 = r544745 - r544746;
double r544748 = 2.0;
double r544749 = r544747 / r544748;
double r544750 = r544745 + r544749;
return r544750;
}
double f(double x, double y) {
double r544751 = x;
double r544752 = y;
double r544753 = r544751 - r544752;
double r544754 = 2.0;
double r544755 = r544753 / r544754;
double r544756 = r544751 + r544755;
return r544756;
}




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 2019304
(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)))