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 r605115 = x;
double r605116 = 1.0;
double r605117 = r605116 - r605115;
double r605118 = y;
double r605119 = r605116 - r605118;
double r605120 = r605117 * r605119;
double r605121 = r605115 + r605120;
return r605121;
}
double f(double x, double y) {
double r605122 = y;
double r605123 = x;
double r605124 = 1.0;
double r605125 = r605123 - r605124;
double r605126 = fma(r605122, r605125, r605124);
return r605126;
}




Bits error versus x




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