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 r348042 = x;
double r348043 = 1.0;
double r348044 = r348043 - r348042;
double r348045 = y;
double r348046 = r348043 - r348045;
double r348047 = r348044 * r348046;
double r348048 = r348042 + r348047;
return r348048;
}
double f(double x, double y) {
double r348049 = y;
double r348050 = x;
double r348051 = 1.0;
double r348052 = r348050 - r348051;
double r348053 = fma(r348049, r348052, r348051);
return r348053;
}




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