x + \frac{x - y}{2}x + \frac{x - y}{2}double f(double x, double y) {
double r609190 = x;
double r609191 = y;
double r609192 = r609190 - r609191;
double r609193 = 2.0;
double r609194 = r609192 / r609193;
double r609195 = r609190 + r609194;
return r609195;
}
double f(double x, double y) {
double r609196 = x;
double r609197 = y;
double r609198 = r609196 - r609197;
double r609199 = 2.0;
double r609200 = r609198 / r609199;
double r609201 = r609196 + r609200;
return r609201;
}




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 2020045 +o rules:numerics
(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)))