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 r560178 = x;
double r560179 = 1.0;
double r560180 = r560179 - r560178;
double r560181 = y;
double r560182 = r560179 - r560181;
double r560183 = r560180 * r560182;
double r560184 = r560178 + r560183;
return r560184;
}
double f(double x, double y) {
double r560185 = y;
double r560186 = x;
double r560187 = 1.0;
double r560188 = r560186 - r560187;
double r560189 = fma(r560185, r560188, r560187);
return r560189;
}




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