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 r489067 = x;
double r489068 = 1.0;
double r489069 = r489068 - r489067;
double r489070 = y;
double r489071 = r489068 - r489070;
double r489072 = r489069 * r489071;
double r489073 = r489067 + r489072;
return r489073;
}
double f(double x, double y) {
double r489074 = y;
double r489075 = x;
double r489076 = 1.0;
double r489077 = r489075 - r489076;
double r489078 = fma(r489074, r489077, r489076);
return r489078;
}




Bits error versus x




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