x + \left(1 - x\right) \cdot \left(1 - y\right)
\mathsf{fma}\left(y, x - 1, 1\right)double f(double x, double y) {
double r730561 = x;
double r730562 = 1.0;
double r730563 = r730562 - r730561;
double r730564 = y;
double r730565 = r730562 - r730564;
double r730566 = r730563 * r730565;
double r730567 = r730561 + r730566;
return r730567;
}
double f(double x, double y) {
double r730568 = y;
double r730569 = x;
double r730570 = 1.0;
double r730571 = r730569 - r730570;
double r730572 = fma(r730568, r730571, r730570);
return r730572;
}




Bits error versus x




Bits error versus y
| Original | 16.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 16.0
Simplified15.9
Taylor expanded around 0 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019362 +o rules:numerics
(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))))