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 r544746 = x;
double r544747 = 1.0;
double r544748 = r544747 - r544746;
double r544749 = y;
double r544750 = r544747 - r544749;
double r544751 = r544748 * r544750;
double r544752 = r544746 + r544751;
return r544752;
}
double f(double x, double y) {
double r544753 = y;
double r544754 = x;
double r544755 = 1.0;
double r544756 = r544754 - r544755;
double r544757 = fma(r544753, r544756, r544755);
return r544757;
}




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