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 r1238358 = x;
double r1238359 = 1.0;
double r1238360 = r1238359 - r1238358;
double r1238361 = y;
double r1238362 = r1238359 - r1238361;
double r1238363 = r1238360 * r1238362;
double r1238364 = r1238358 + r1238363;
return r1238364;
}
double f(double x, double y) {
double r1238365 = x;
double r1238366 = y;
double r1238367 = r1238365 * r1238366;
double r1238368 = 1.0;
double r1238369 = -r1238368;
double r1238370 = r1238369 * r1238366;
double r1238371 = r1238367 + r1238370;
double r1238372 = r1238371 + r1238368;
return r1238372;
}




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