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 r1300996 = x;
double r1300997 = 1.0;
double r1300998 = r1300997 - r1300996;
double r1300999 = y;
double r1301000 = r1300997 - r1300999;
double r1301001 = r1300998 * r1301000;
double r1301002 = r1300996 + r1301001;
return r1301002;
}
double f(double x, double y) {
double r1301003 = y;
double r1301004 = x;
double r1301005 = 1.0;
double r1301006 = r1301004 - r1301005;
double r1301007 = fma(r1301003, r1301006, r1301005);
return r1301007;
}




Bits error versus x




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