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 r505412 = x;
double r505413 = 1.0;
double r505414 = r505413 - r505412;
double r505415 = y;
double r505416 = r505413 - r505415;
double r505417 = r505414 * r505416;
double r505418 = r505412 + r505417;
return r505418;
}
double f(double x, double y) {
double r505419 = y;
double r505420 = x;
double r505421 = 1.0;
double r505422 = r505420 - r505421;
double r505423 = fma(r505419, r505422, r505421);
return r505423;
}




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