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 r697182 = x;
double r697183 = 1.0;
double r697184 = r697183 - r697182;
double r697185 = y;
double r697186 = r697183 - r697185;
double r697187 = r697184 * r697186;
double r697188 = r697182 + r697187;
return r697188;
}
double f(double x, double y) {
double r697189 = y;
double r697190 = x;
double r697191 = 1.0;
double r697192 = r697190 - r697191;
double r697193 = fma(r697189, r697192, r697191);
return r697193;
}




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