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 r484607 = x;
double r484608 = 1.0;
double r484609 = r484608 - r484607;
double r484610 = y;
double r484611 = r484608 - r484610;
double r484612 = r484609 * r484611;
double r484613 = r484607 + r484612;
return r484613;
}
double f(double x, double y) {
double r484614 = y;
double r484615 = x;
double r484616 = 1.0;
double r484617 = r484615 - r484616;
double r484618 = fma(r484614, r484617, r484616);
return r484618;
}




Bits error versus x




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