x \cdot e^{y \cdot y}\sqrt{e^{y \cdot y}} \cdot \left({\left(e^{y}\right)}^{\left(\frac{y}{2}\right)} \cdot x\right)double f(double x, double y) {
double r40221296 = x;
double r40221297 = y;
double r40221298 = r40221297 * r40221297;
double r40221299 = exp(r40221298);
double r40221300 = r40221296 * r40221299;
return r40221300;
}
double f(double x, double y) {
double r40221301 = y;
double r40221302 = r40221301 * r40221301;
double r40221303 = exp(r40221302);
double r40221304 = sqrt(r40221303);
double r40221305 = exp(r40221301);
double r40221306 = 2.0;
double r40221307 = r40221301 / r40221306;
double r40221308 = pow(r40221305, r40221307);
double r40221309 = x;
double r40221310 = r40221308 * r40221309;
double r40221311 = r40221304 * r40221310;
return r40221311;
}




Bits error versus x




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