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 r421051 = x;
double r421052 = 1.0;
double r421053 = r421052 - r421051;
double r421054 = y;
double r421055 = r421052 - r421054;
double r421056 = r421053 * r421055;
double r421057 = r421051 + r421056;
return r421057;
}
double f(double x, double y) {
double r421058 = y;
double r421059 = x;
double r421060 = 1.0;
double r421061 = r421059 - r421060;
double r421062 = fma(r421058, r421061, r421060);
return r421062;
}




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