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 r622873 = x;
double r622874 = 1.0;
double r622875 = r622874 - r622873;
double r622876 = y;
double r622877 = r622874 - r622876;
double r622878 = r622875 * r622877;
double r622879 = r622873 + r622878;
return r622879;
}
double f(double x, double y) {
double r622880 = y;
double r622881 = x;
double r622882 = 1.0;
double r622883 = r622881 - r622882;
double r622884 = fma(r622880, r622883, r622882);
return r622884;
}




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