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 r341812 = x;
double r341813 = 1.0;
double r341814 = r341813 - r341812;
double r341815 = y;
double r341816 = r341813 - r341815;
double r341817 = r341814 * r341816;
double r341818 = r341812 + r341817;
return r341818;
}
double f(double x, double y) {
double r341819 = y;
double r341820 = x;
double r341821 = 1.0;
double r341822 = r341820 - r341821;
double r341823 = fma(r341819, r341822, r341821);
return r341823;
}




Bits error versus x




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