x + \left(1.0 - x\right) \cdot \left(1.0 - y\right)
\mathsf{fma}\left(y, x - 1.0, 1.0\right)double f(double x, double y) {
double r24859503 = x;
double r24859504 = 1.0;
double r24859505 = r24859504 - r24859503;
double r24859506 = y;
double r24859507 = r24859504 - r24859506;
double r24859508 = r24859505 * r24859507;
double r24859509 = r24859503 + r24859508;
return r24859509;
}
double f(double x, double y) {
double r24859510 = y;
double r24859511 = x;
double r24859512 = 1.0;
double r24859513 = r24859511 - r24859512;
double r24859514 = fma(r24859510, r24859513, r24859512);
return r24859514;
}




Bits error versus x




Bits error versus y
| Original | 16.2 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 16.2
Simplified16.2
Taylor expanded around 0 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019162 +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))))