x + \left(1.0 - x\right) \cdot \left(1.0 - y\right)
\mathsf{fma}\left(y, x - 1.0, 1.0\right)double f(double x, double y) {
double r26252052 = x;
double r26252053 = 1.0;
double r26252054 = r26252053 - r26252052;
double r26252055 = y;
double r26252056 = r26252053 - r26252055;
double r26252057 = r26252054 * r26252056;
double r26252058 = r26252052 + r26252057;
return r26252058;
}
double f(double x, double y) {
double r26252059 = y;
double r26252060 = x;
double r26252061 = 1.0;
double r26252062 = r26252060 - r26252061;
double r26252063 = fma(r26252059, r26252062, r26252061);
return r26252063;
}




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 2019163 +o rules:numerics
(FPCore (x y)
:name "Graphics.Rendering.Chart.Plot.Vectors:renderPlotVectors from Chart-1.5.3"
:herbie-target
(- (* y x) (- y 1.0))
(+ x (* (- 1.0 x) (- 1.0 y))))