x \cdot \left(1 + y \cdot y\right)
\mathsf{fma}\left(y, y, 1\right) \cdot xdouble f(double x, double y) {
double r392489 = x;
double r392490 = 1.0;
double r392491 = y;
double r392492 = r392491 * r392491;
double r392493 = r392490 + r392492;
double r392494 = r392489 * r392493;
return r392494;
}
double f(double x, double y) {
double r392495 = y;
double r392496 = 1.0;
double r392497 = fma(r392495, r392495, r392496);
double r392498 = x;
double r392499 = r392497 * r392498;
return r392499;
}




Bits error versus x




Bits error versus y
| Original | 5.2 |
|---|---|
| Target | 0.1 |
| Herbie | 5.2 |
Initial program 5.2
Simplified5.2
Final simplification5.2
herbie shell --seed 2019326 +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))))