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 r27516579 = x;
double r27516580 = 1.0;
double r27516581 = r27516580 - r27516579;
double r27516582 = y;
double r27516583 = r27516580 - r27516582;
double r27516584 = r27516581 * r27516583;
double r27516585 = r27516579 + r27516584;
return r27516585;
}
double f(double x, double y) {
double r27516586 = y;
double r27516587 = x;
double r27516588 = 1.0;
double r27516589 = r27516587 - r27516588;
double r27516590 = fma(r27516586, r27516589, r27516588);
return r27516590;
}




Bits error versus x




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