x + \left(1 - x\right) \cdot \left(1 - y\right)
\mathsf{fma}\left(y, x - 1, 1\right)double f(double x, double y) {
double r20582723 = x;
double r20582724 = 1.0;
double r20582725 = r20582724 - r20582723;
double r20582726 = y;
double r20582727 = r20582724 - r20582726;
double r20582728 = r20582725 * r20582727;
double r20582729 = r20582723 + r20582728;
return r20582729;
}
double f(double x, double y) {
double r20582730 = y;
double r20582731 = x;
double r20582732 = 1.0;
double r20582733 = r20582731 - r20582732;
double r20582734 = fma(r20582730, r20582733, r20582732);
return r20582734;
}




Bits error versus x




Bits error versus y
| Original | 16.8 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 16.8
Simplified16.8
Taylor expanded around 0 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019170 +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))))