x \cdot \left(1 + y \cdot y\right)
\mathsf{fma}\left(y, y, 1\right) \cdot xdouble f(double x, double y) {
double r352487 = x;
double r352488 = 1.0;
double r352489 = y;
double r352490 = r352489 * r352489;
double r352491 = r352488 + r352490;
double r352492 = r352487 * r352491;
return r352492;
}
double f(double x, double y) {
double r352493 = y;
double r352494 = 1.0;
double r352495 = fma(r352493, r352493, r352494);
double r352496 = x;
double r352497 = r352495 * r352496;
return r352497;
}




Bits error versus x




Bits error versus y
| Original | 5.8 |
|---|---|
| Target | 0.1 |
| Herbie | 5.8 |
Initial program 5.8
Simplified5.8
Final simplification5.8
herbie shell --seed 2019325 +o rules:numerics
(FPCore (x y)
:name "Numeric.Integration.TanhSinh:everywhere from integration-0.2.1"
:precision binary64
:herbie-target
(+ x (* (* x y) y))
(* x (+ 1 (* y y))))