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 r401454 = x;
double r401455 = 1.0;
double r401456 = r401455 - r401454;
double r401457 = y;
double r401458 = r401455 - r401457;
double r401459 = r401456 * r401458;
double r401460 = r401454 + r401459;
return r401460;
}
double f(double x, double y) {
double r401461 = y;
double r401462 = x;
double r401463 = 1.0;
double r401464 = r401462 - r401463;
double r401465 = fma(r401461, r401464, r401463);
return r401465;
}




Bits error versus x




Bits error versus y
| Original | 16.5 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 16.5
Simplified16.5
Taylor expanded around 0 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019323 +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))))