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 r25225377 = x;
double r25225378 = 1.0;
double r25225379 = r25225378 - r25225377;
double r25225380 = y;
double r25225381 = r25225378 - r25225380;
double r25225382 = r25225379 * r25225381;
double r25225383 = r25225377 + r25225382;
return r25225383;
}
double f(double x, double y) {
double r25225384 = y;
double r25225385 = x;
double r25225386 = 1.0;
double r25225387 = r25225385 - r25225386;
double r25225388 = fma(r25225384, r25225387, r25225386);
return r25225388;
}




Bits error versus x




Bits error versus y
| Original | 16.7 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 16.7
Simplified16.7
Taylor expanded around 0 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019174 +o rules:numerics
(FPCore (x y)
:name "Graphics.Rendering.Chart.Plot.Vectors:renderPlotVectors from Chart-1.5.3"
:herbie-target
(- (* y x) (- y 1.0))
(+ x (* (- 1.0 x) (- 1.0 y))))