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 r648424 = x;
double r648425 = 1.0;
double r648426 = r648425 - r648424;
double r648427 = y;
double r648428 = r648425 - r648427;
double r648429 = r648426 * r648428;
double r648430 = r648424 + r648429;
return r648430;
}
double f(double x, double y) {
double r648431 = y;
double r648432 = x;
double r648433 = 1.0;
double r648434 = r648432 - r648433;
double r648435 = fma(r648431, r648434, r648433);
return r648435;
}




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 2020060 +o rules:numerics
(FPCore (x y)
:name "Graphics.Rendering.Chart.Plot.Vectors:renderPlotVectors from Chart-1.5.3"
:precision binary64
:herbie-target
(- (* y x) (- y 1))
(+ x (* (- 1 x) (- 1 y))))