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 r620800 = x;
double r620801 = 1.0;
double r620802 = r620801 - r620800;
double r620803 = y;
double r620804 = r620801 - r620803;
double r620805 = r620802 * r620804;
double r620806 = r620800 + r620805;
return r620806;
}
double f(double x, double y) {
double r620807 = y;
double r620808 = x;
double r620809 = 1.0;
double r620810 = r620808 - r620809;
double r620811 = fma(r620807, r620810, r620809);
return r620811;
}




Bits error versus x




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