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 r22549621 = x;
double r22549622 = 1.0;
double r22549623 = r22549622 - r22549621;
double r22549624 = y;
double r22549625 = r22549622 - r22549624;
double r22549626 = r22549623 * r22549625;
double r22549627 = r22549621 + r22549626;
return r22549627;
}
double f(double x, double y) {
double r22549628 = y;
double r22549629 = x;
double r22549630 = 1.0;
double r22549631 = r22549629 - r22549630;
double r22549632 = fma(r22549628, r22549631, r22549630);
return r22549632;
}




Bits error versus x




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