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 r560038 = x;
double r560039 = 1.0;
double r560040 = r560039 - r560038;
double r560041 = y;
double r560042 = r560039 - r560041;
double r560043 = r560040 * r560042;
double r560044 = r560038 + r560043;
return r560044;
}
double f(double x, double y) {
double r560045 = y;
double r560046 = x;
double r560047 = 1.0;
double r560048 = r560046 - r560047;
double r560049 = fma(r560045, r560048, r560047);
return r560049;
}




Bits error versus x




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