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 r649099 = x;
double r649100 = 1.0;
double r649101 = r649100 - r649099;
double r649102 = y;
double r649103 = r649100 - r649102;
double r649104 = r649101 * r649103;
double r649105 = r649099 + r649104;
return r649105;
}
double f(double x, double y) {
double r649106 = y;
double r649107 = x;
double r649108 = 1.0;
double r649109 = r649107 - r649108;
double r649110 = fma(r649106, r649109, r649108);
return r649110;
}




Bits error versus x




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