x + \left(1 - x\right) \cdot \left(1 - y\right)
1 + \left(x \cdot y + \left(-1\right) \cdot y\right)
double f(double x, double y) {
double r915422 = x;
double r915423 = 1.0;
double r915424 = r915423 - r915422;
double r915425 = y;
double r915426 = r915423 - r915425;
double r915427 = r915424 * r915426;
double r915428 = r915422 + r915427;
return r915428;
}
double f(double x, double y) {
double r915429 = 1.0;
double r915430 = x;
double r915431 = y;
double r915432 = r915430 * r915431;
double r915433 = -r915429;
double r915434 = r915433 * r915431;
double r915435 = r915432 + r915434;
double r915436 = r915429 + r915435;
return r915436;
}




Bits error versus x




Bits error versus y
Results
| Original | 16.6 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 16.6
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 2020047
(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))))