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 r467740 = x;
double r467741 = 1.0;
double r467742 = r467741 - r467740;
double r467743 = y;
double r467744 = r467741 - r467743;
double r467745 = r467742 * r467744;
double r467746 = r467740 + r467745;
return r467746;
}
double f(double x, double y) {
double r467747 = y;
double r467748 = x;
double r467749 = 1.0;
double r467750 = r467748 - r467749;
double r467751 = fma(r467747, r467750, r467749);
return r467751;
}




Bits error versus x




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