x + \frac{x - y}{2.0}1.5 \cdot x - 0.5 \cdot y
double f(double x, double y) {
double r26668013 = x;
double r26668014 = y;
double r26668015 = r26668013 - r26668014;
double r26668016 = 2.0;
double r26668017 = r26668015 / r26668016;
double r26668018 = r26668013 + r26668017;
return r26668018;
}
double f(double x, double y) {
double r26668019 = 1.5;
double r26668020 = x;
double r26668021 = r26668019 * r26668020;
double r26668022 = 0.5;
double r26668023 = y;
double r26668024 = r26668022 * r26668023;
double r26668025 = r26668021 - r26668024;
return r26668025;
}




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