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 r529721 = x;
double r529722 = 1.0;
double r529723 = r529722 - r529721;
double r529724 = y;
double r529725 = r529722 - r529724;
double r529726 = r529723 * r529725;
double r529727 = r529721 + r529726;
return r529727;
}
double f(double x, double y) {
double r529728 = y;
double r529729 = x;
double r529730 = 1.0;
double r529731 = r529729 - r529730;
double r529732 = fma(r529728, r529731, r529730);
return r529732;
}




Bits error versus x




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