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 r429928 = x;
double r429929 = 1.0;
double r429930 = r429929 - r429928;
double r429931 = y;
double r429932 = r429929 - r429931;
double r429933 = r429930 * r429932;
double r429934 = r429928 + r429933;
return r429934;
}
double f(double x, double y) {
double r429935 = y;
double r429936 = x;
double r429937 = 1.0;
double r429938 = r429936 - r429937;
double r429939 = fma(r429935, r429938, r429937);
return r429939;
}




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