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 r399638 = x;
double r399639 = 1.0;
double r399640 = r399639 - r399638;
double r399641 = y;
double r399642 = r399639 - r399641;
double r399643 = r399640 * r399642;
double r399644 = r399638 + r399643;
return r399644;
}
double f(double x, double y) {
double r399645 = y;
double r399646 = x;
double r399647 = 1.0;
double r399648 = r399646 - r399647;
double r399649 = fma(r399645, r399648, r399647);
return r399649;
}




Bits error versus x




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