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 r370857 = x;
double r370858 = 1.0;
double r370859 = r370858 - r370857;
double r370860 = y;
double r370861 = r370858 - r370860;
double r370862 = r370859 * r370861;
double r370863 = r370857 + r370862;
return r370863;
}
double f(double x, double y) {
double r370864 = y;
double r370865 = x;
double r370866 = 1.0;
double r370867 = r370865 - r370866;
double r370868 = fma(r370864, r370867, r370866);
return r370868;
}




Bits error versus x




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