x + \left(1 - x\right) \cdot \left(1 - y\right)
\left(x \cdot y + \left(-1\right) \cdot y\right) + 1
double f(double x, double y) {
double r519263 = x;
double r519264 = 1.0;
double r519265 = r519264 - r519263;
double r519266 = y;
double r519267 = r519264 - r519266;
double r519268 = r519265 * r519267;
double r519269 = r519263 + r519268;
return r519269;
}
double f(double x, double y) {
double r519270 = x;
double r519271 = y;
double r519272 = r519270 * r519271;
double r519273 = 1.0;
double r519274 = -r519273;
double r519275 = r519274 * r519271;
double r519276 = r519272 + r519275;
double r519277 = r519276 + r519273;
return r519277;
}




Bits error versus x




Bits error versus y
Results
| Original | 16.3 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 16.3
Taylor expanded around 0 0.0
Simplified0.0
rmApplied sub-neg0.0
Applied distribute-lft-in0.0
Simplified0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2020046
(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))))