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 r42027 = x;
double r42028 = 1.0;
double r42029 = r42028 - r42027;
double r42030 = y;
double r42031 = r42028 - r42030;
double r42032 = r42029 * r42031;
double r42033 = r42027 + r42032;
return r42033;
}
double f(double x, double y) {
double r42034 = y;
double r42035 = x;
double r42036 = 1.0;
double r42037 = r42035 - r42036;
double r42038 = fma(r42034, r42037, r42036);
return r42038;
}




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