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 r568247 = x;
double r568248 = 1.0;
double r568249 = r568248 - r568247;
double r568250 = y;
double r568251 = r568248 - r568250;
double r568252 = r568249 * r568251;
double r568253 = r568247 + r568252;
return r568253;
}
double f(double x, double y) {
double r568254 = y;
double r568255 = x;
double r568256 = 1.0;
double r568257 = r568255 - r568256;
double r568258 = fma(r568254, r568257, r568256);
return r568258;
}




Bits error versus x




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