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 r24355313 = x;
double r24355314 = 1.0;
double r24355315 = r24355314 - r24355313;
double r24355316 = y;
double r24355317 = r24355314 - r24355316;
double r24355318 = r24355315 * r24355317;
double r24355319 = r24355313 + r24355318;
return r24355319;
}
double f(double x, double y) {
double r24355320 = y;
double r24355321 = x;
double r24355322 = 1.0;
double r24355323 = r24355321 - r24355322;
double r24355324 = fma(r24355320, r24355323, r24355322);
return r24355324;
}




Bits error versus x




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