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 r474474 = x;
double r474475 = 1.0;
double r474476 = r474475 - r474474;
double r474477 = y;
double r474478 = r474475 - r474477;
double r474479 = r474476 * r474478;
double r474480 = r474474 + r474479;
return r474480;
}
double f(double x, double y) {
double r474481 = x;
double r474482 = y;
double r474483 = r474481 * r474482;
double r474484 = 1.0;
double r474485 = -r474484;
double r474486 = r474485 * r474482;
double r474487 = r474483 + r474486;
double r474488 = r474487 + r474484;
return r474488;
}




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