x \cdot \left(1 + y \cdot y\right)
\sqrt{\mathsf{fma}\left(y, y, 1\right)} \cdot \left(\sqrt{\mathsf{fma}\left(y, y, 1\right)} \cdot x\right)double f(double x, double y) {
double r18463899 = x;
double r18463900 = 1.0;
double r18463901 = y;
double r18463902 = r18463901 * r18463901;
double r18463903 = r18463900 + r18463902;
double r18463904 = r18463899 * r18463903;
return r18463904;
}
double f(double x, double y) {
double r18463905 = y;
double r18463906 = 1.0;
double r18463907 = fma(r18463905, r18463905, r18463906);
double r18463908 = sqrt(r18463907);
double r18463909 = x;
double r18463910 = r18463908 * r18463909;
double r18463911 = r18463908 * r18463910;
return r18463911;
}




Bits error versus x




Bits error versus y
| Original | 5.3 |
|---|---|
| Target | 0.1 |
| Herbie | 5.3 |
Initial program 5.3
Simplified5.3
rmApplied add-sqr-sqrt5.3
Applied associate-*l*5.3
Final simplification5.3
herbie shell --seed 2019179 +o rules:numerics
(FPCore (x y)
:name "Numeric.Integration.TanhSinh:everywhere from integration-0.2.1"
:herbie-target
(+ x (* (* x y) y))
(* x (+ 1.0 (* y y))))