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 r362934 = x;
double r362935 = 1.0;
double r362936 = r362935 - r362934;
double r362937 = y;
double r362938 = r362935 - r362937;
double r362939 = r362936 * r362938;
double r362940 = r362934 + r362939;
return r362940;
}
double f(double x, double y) {
double r362941 = y;
double r362942 = x;
double r362943 = 1.0;
double r362944 = r362942 - r362943;
double r362945 = fma(r362941, r362944, r362943);
return r362945;
}




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 2019323 +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))))