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 r575115 = x;
double r575116 = 1.0;
double r575117 = r575116 - r575115;
double r575118 = y;
double r575119 = r575116 - r575118;
double r575120 = r575117 * r575119;
double r575121 = r575115 + r575120;
return r575121;
}
double f(double x, double y) {
double r575122 = y;
double r575123 = x;
double r575124 = 1.0;
double r575125 = r575123 - r575124;
double r575126 = fma(r575122, r575125, r575124);
return r575126;
}




Bits error versus x




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