x + \left(1.0 - x\right) \cdot \left(1.0 - y\right)
\mathsf{fma}\left(y, x - 1.0, 1.0\right)double f(double x, double y) {
double r16150618 = x;
double r16150619 = 1.0;
double r16150620 = r16150619 - r16150618;
double r16150621 = y;
double r16150622 = r16150619 - r16150621;
double r16150623 = r16150620 * r16150622;
double r16150624 = r16150618 + r16150623;
return r16150624;
}
double f(double x, double y) {
double r16150625 = y;
double r16150626 = x;
double r16150627 = 1.0;
double r16150628 = r16150626 - r16150627;
double r16150629 = fma(r16150625, r16150628, r16150627);
return r16150629;
}




Bits error versus x




Bits error versus y
| Original | 16.1 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 16.1
Simplified16.1
Taylor expanded around 0 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019163 +o rules:numerics
(FPCore (x y)
:name "Graphics.Rendering.Chart.Plot.Vectors:renderPlotVectors from Chart-1.5.3"
:herbie-target
(- (* y x) (- y 1.0))
(+ x (* (- 1.0 x) (- 1.0 y))))