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 r584056 = x;
double r584057 = 1.0;
double r584058 = r584057 - r584056;
double r584059 = y;
double r584060 = r584057 - r584059;
double r584061 = r584058 * r584060;
double r584062 = r584056 + r584061;
return r584062;
}
double f(double x, double y) {
double r584063 = y;
double r584064 = x;
double r584065 = 1.0;
double r584066 = r584064 - r584065;
double r584067 = fma(r584063, r584066, r584065);
return r584067;
}




Bits error versus x




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