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 r588798 = x;
double r588799 = 1.0;
double r588800 = r588799 - r588798;
double r588801 = y;
double r588802 = r588799 - r588801;
double r588803 = r588800 * r588802;
double r588804 = r588798 + r588803;
return r588804;
}
double f(double x, double y) {
double r588805 = y;
double r588806 = x;
double r588807 = 1.0;
double r588808 = r588806 - r588807;
double r588809 = fma(r588805, r588808, r588807);
return r588809;
}




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