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 r10109369 = x;
double r10109370 = 1.0;
double r10109371 = r10109370 - r10109369;
double r10109372 = y;
double r10109373 = r10109370 - r10109372;
double r10109374 = r10109371 * r10109373;
double r10109375 = r10109369 + r10109374;
return r10109375;
}
double f(double x, double y) {
double r10109376 = y;
double r10109377 = x;
double r10109378 = 1.0;
double r10109379 = r10109377 - r10109378;
double r10109380 = fma(r10109376, r10109379, r10109378);
return r10109380;
}




Bits error versus x




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