x + \frac{x - y}{2}1.5 \cdot x - 0.5 \cdot y
double f(double x, double y) {
double r28487642 = x;
double r28487643 = y;
double r28487644 = r28487642 - r28487643;
double r28487645 = 2.0;
double r28487646 = r28487644 / r28487645;
double r28487647 = r28487642 + r28487646;
return r28487647;
}
double f(double x, double y) {
double r28487648 = 1.5;
double r28487649 = x;
double r28487650 = r28487648 * r28487649;
double r28487651 = 0.5;
double r28487652 = y;
double r28487653 = r28487651 * r28487652;
double r28487654 = r28487650 - r28487653;
return r28487654;
}




Bits error versus x




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