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 r367803 = x;
double r367804 = 1.0;
double r367805 = r367804 - r367803;
double r367806 = y;
double r367807 = r367804 - r367806;
double r367808 = r367805 * r367807;
double r367809 = r367803 + r367808;
return r367809;
}
double f(double x, double y) {
double r367810 = y;
double r367811 = x;
double r367812 = 1.0;
double r367813 = r367811 - r367812;
double r367814 = fma(r367810, r367813, r367812);
return r367814;
}




Bits error versus x




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