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 r446648 = x;
double r446649 = 1.0;
double r446650 = r446649 - r446648;
double r446651 = y;
double r446652 = r446649 - r446651;
double r446653 = r446650 * r446652;
double r446654 = r446648 + r446653;
return r446654;
}
double f(double x, double y) {
double r446655 = y;
double r446656 = x;
double r446657 = 1.0;
double r446658 = r446656 - r446657;
double r446659 = fma(r446655, r446658, r446657);
return r446659;
}




Bits error versus x




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