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 r372552 = x;
double r372553 = 1.0;
double r372554 = r372553 - r372552;
double r372555 = y;
double r372556 = r372553 - r372555;
double r372557 = r372554 * r372556;
double r372558 = r372552 + r372557;
return r372558;
}
double f(double x, double y) {
double r372559 = y;
double r372560 = x;
double r372561 = 1.0;
double r372562 = r372560 - r372561;
double r372563 = fma(r372559, r372562, r372561);
return r372563;
}




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