x + \left(1 - x\right) \cdot \left(1 - y\right)
y \cdot x + \left(1 - 1 \cdot y\right)
double f(double x, double y) {
double r708079 = x;
double r708080 = 1.0;
double r708081 = r708080 - r708079;
double r708082 = y;
double r708083 = r708080 - r708082;
double r708084 = r708081 * r708083;
double r708085 = r708079 + r708084;
return r708085;
}
double f(double x, double y) {
double r708086 = y;
double r708087 = x;
double r708088 = r708086 * r708087;
double r708089 = 1.0;
double r708090 = r708089 * r708086;
double r708091 = r708089 - r708090;
double r708092 = r708088 + r708091;
return r708092;
}




Bits error versus x




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