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 r507936 = x;
double r507937 = 1.0;
double r507938 = r507937 - r507936;
double r507939 = y;
double r507940 = r507937 - r507939;
double r507941 = r507938 * r507940;
double r507942 = r507936 + r507941;
return r507942;
}
double f(double x, double y) {
double r507943 = y;
double r507944 = x;
double r507945 = 1.0;
double r507946 = r507944 - r507945;
double r507947 = fma(r507943, r507946, r507945);
return r507947;
}




Bits error versus x




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