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 r1182097 = x;
double r1182098 = 1.0;
double r1182099 = r1182098 - r1182097;
double r1182100 = y;
double r1182101 = r1182098 - r1182100;
double r1182102 = r1182099 * r1182101;
double r1182103 = r1182097 + r1182102;
return r1182103;
}
double f(double x, double y) {
double r1182104 = x;
double r1182105 = y;
double r1182106 = r1182104 * r1182105;
double r1182107 = 1.0;
double r1182108 = -r1182107;
double r1182109 = r1182108 * r1182105;
double r1182110 = r1182106 + r1182109;
double r1182111 = r1182110 + r1182107;
return r1182111;
}




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