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 r664627 = x;
double r664628 = 1.0;
double r664629 = r664628 - r664627;
double r664630 = y;
double r664631 = r664628 - r664630;
double r664632 = r664629 * r664631;
double r664633 = r664627 + r664632;
return r664633;
}
double f(double x, double y) {
double r664634 = y;
double r664635 = x;
double r664636 = 1.0;
double r664637 = r664635 - r664636;
double r664638 = fma(r664634, r664637, r664636);
return r664638;
}




Bits error versus x




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