x \cdot e^{y \cdot y}\left(x \cdot {\left(e^{y}\right)}^{\left(\frac{y}{2}\right)}\right) \cdot \sqrt{e^{y \cdot y}}double f(double x, double y) {
double r796258 = x;
double r796259 = y;
double r796260 = r796259 * r796259;
double r796261 = exp(r796260);
double r796262 = r796258 * r796261;
return r796262;
}
double f(double x, double y) {
double r796263 = x;
double r796264 = y;
double r796265 = exp(r796264);
double r796266 = 2.0;
double r796267 = r796264 / r796266;
double r796268 = pow(r796265, r796267);
double r796269 = r796263 * r796268;
double r796270 = r796264 * r796264;
double r796271 = exp(r796270);
double r796272 = sqrt(r796271);
double r796273 = r796269 * r796272;
return r796273;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.1 |
Initial program 0.0
rmApplied add-sqr-sqrt0.1
Applied associate-*r*0.1
rmApplied add-log-exp0.1
Applied exp-to-pow0.1
Applied sqrt-pow10.1
Final simplification0.1
herbie shell --seed 2020024
(FPCore (x y)
:name "Data.Number.Erf:$dmerfcx from erf-2.0.0.0"
:precision binary64
:herbie-target
(* x (pow (exp y) y))
(* x (exp (* y y))))