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 r37517863 = x;
double r37517864 = 1.0;
double r37517865 = r37517864 - r37517863;
double r37517866 = y;
double r37517867 = r37517864 - r37517866;
double r37517868 = r37517865 * r37517867;
double r37517869 = r37517863 + r37517868;
return r37517869;
}
double f(double x, double y) {
double r37517870 = y;
double r37517871 = x;
double r37517872 = 1.0;
double r37517873 = r37517871 - r37517872;
double r37517874 = fma(r37517870, r37517873, r37517872);
return r37517874;
}




Bits error versus x




Bits error versus y
| Original | 16.7 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 16.7
Simplified16.7
Taylor expanded around 0 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019174 +o rules:numerics
(FPCore (x y)
:name "Graphics.Rendering.Chart.Plot.Vectors:renderPlotVectors from Chart-1.5.3"
:herbie-target
(- (* y x) (- y 1.0))
(+ x (* (- 1.0 x) (- 1.0 y))))