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 r408152 = x;
double r408153 = 1.0;
double r408154 = r408153 - r408152;
double r408155 = y;
double r408156 = r408153 - r408155;
double r408157 = r408154 * r408156;
double r408158 = r408152 + r408157;
return r408158;
}
double f(double x, double y) {
double r408159 = y;
double r408160 = x;
double r408161 = 1.0;
double r408162 = r408160 - r408161;
double r408163 = fma(r408159, r408162, r408161);
return r408163;
}




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