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 r581486 = x;
double r581487 = 1.0;
double r581488 = r581487 - r581486;
double r581489 = y;
double r581490 = r581487 - r581489;
double r581491 = r581488 * r581490;
double r581492 = r581486 + r581491;
return r581492;
}
double f(double x, double y) {
double r581493 = y;
double r581494 = x;
double r581495 = 1.0;
double r581496 = r581494 - r581495;
double r581497 = fma(r581493, r581496, r581495);
return r581497;
}




Bits error versus x




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