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 r389012 = x;
double r389013 = 1.0;
double r389014 = r389013 - r389012;
double r389015 = y;
double r389016 = r389013 - r389015;
double r389017 = r389014 * r389016;
double r389018 = r389012 + r389017;
return r389018;
}
double f(double x, double y) {
double r389019 = y;
double r389020 = x;
double r389021 = 1.0;
double r389022 = r389020 - r389021;
double r389023 = fma(r389019, r389022, r389021);
return r389023;
}




Bits error versus x




Bits error versus y
| Original | 15.9 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 15.9
Simplified15.9
Taylor expanded around 0 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019306 +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))))