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 r987294 = x;
double r987295 = y;
double r987296 = r987295 * r987295;
double r987297 = exp(r987296);
double r987298 = r987294 * r987297;
return r987298;
}
double f(double x, double y) {
double r987299 = x;
double r987300 = y;
double r987301 = exp(r987300);
double r987302 = 2.0;
double r987303 = r987300 / r987302;
double r987304 = pow(r987301, r987303);
double r987305 = r987299 * r987304;
double r987306 = r987300 * r987300;
double r987307 = exp(r987306);
double r987308 = sqrt(r987307);
double r987309 = r987305 * r987308;
return r987309;
}




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.1
Applied associate-*r*0.1
rmApplied add-log-exp0.1
Applied exp-to-pow0.0
Applied sqrt-pow10.0
Final simplification0.0
herbie shell --seed 2020034
(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))))