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 r555981 = x;
double r555982 = 1.0;
double r555983 = r555982 - r555981;
double r555984 = y;
double r555985 = r555982 - r555984;
double r555986 = r555983 * r555985;
double r555987 = r555981 + r555986;
return r555987;
}
double f(double x, double y) {
double r555988 = y;
double r555989 = x;
double r555990 = 1.0;
double r555991 = r555989 - r555990;
double r555992 = fma(r555988, r555991, r555990);
return r555992;
}




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