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 r439810 = x;
double r439811 = 1.0;
double r439812 = r439811 - r439810;
double r439813 = y;
double r439814 = r439811 - r439813;
double r439815 = r439812 * r439814;
double r439816 = r439810 + r439815;
return r439816;
}
double f(double x, double y) {
double r439817 = y;
double r439818 = x;
double r439819 = 1.0;
double r439820 = r439818 - r439819;
double r439821 = fma(r439817, r439820, r439819);
return r439821;
}




Bits error versus x




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