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 r286726 = x;
double r286727 = 1.0;
double r286728 = r286727 - r286726;
double r286729 = y;
double r286730 = r286727 - r286729;
double r286731 = r286728 * r286730;
double r286732 = r286726 + r286731;
return r286732;
}
double f(double x, double y) {
double r286733 = y;
double r286734 = x;
double r286735 = 1.0;
double r286736 = r286734 - r286735;
double r286737 = fma(r286733, r286736, r286735);
return r286737;
}




Bits error versus x




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