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 r342485 = x;
double r342486 = 1.0;
double r342487 = r342486 - r342485;
double r342488 = y;
double r342489 = r342486 - r342488;
double r342490 = r342487 * r342489;
double r342491 = r342485 + r342490;
return r342491;
}
double f(double x, double y) {
double r342492 = y;
double r342493 = x;
double r342494 = 1.0;
double r342495 = r342493 - r342494;
double r342496 = fma(r342492, r342495, r342494);
return r342496;
}




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))))