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 r34973515 = x;
double r34973516 = y;
double r34973517 = r34973516 * r34973516;
double r34973518 = exp(r34973517);
double r34973519 = r34973515 * r34973518;
return r34973519;
}
double f(double x, double y) {
double r34973520 = y;
double r34973521 = r34973520 * r34973520;
double r34973522 = exp(r34973521);
double r34973523 = sqrt(r34973522);
double r34973524 = exp(r34973520);
double r34973525 = 2.0;
double r34973526 = r34973520 / r34973525;
double r34973527 = pow(r34973524, r34973526);
double r34973528 = x;
double r34973529 = r34973527 * r34973528;
double r34973530 = r34973523 * r34973529;
return r34973530;
}




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 +o rules:numerics
(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))))