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 r680347 = x;
double r680348 = 1.0;
double r680349 = r680348 - r680347;
double r680350 = y;
double r680351 = r680348 - r680350;
double r680352 = r680349 * r680351;
double r680353 = r680347 + r680352;
return r680353;
}
double f(double x, double y) {
double r680354 = y;
double r680355 = x;
double r680356 = 1.0;
double r680357 = r680355 - r680356;
double r680358 = fma(r680354, r680357, r680356);
return r680358;
}




Bits error versus x




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