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 r23159716 = x;
double r23159717 = 1.0;
double r23159718 = r23159717 - r23159716;
double r23159719 = y;
double r23159720 = r23159717 - r23159719;
double r23159721 = r23159718 * r23159720;
double r23159722 = r23159716 + r23159721;
return r23159722;
}
double f(double x, double y) {
double r23159723 = y;
double r23159724 = x;
double r23159725 = 1.0;
double r23159726 = r23159724 - r23159725;
double r23159727 = fma(r23159723, r23159726, r23159725);
return r23159727;
}




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