x \cdot e^{y \cdot y}\left(x \cdot \sqrt{e^{y \cdot y}}\right) \cdot {\left(e^{y}\right)}^{\left(\frac{y}{2}\right)}double f(double x, double y) {
double r414703 = x;
double r414704 = y;
double r414705 = r414704 * r414704;
double r414706 = exp(r414705);
double r414707 = r414703 * r414706;
return r414707;
}
double f(double x, double y) {
double r414708 = x;
double r414709 = y;
double r414710 = r414709 * r414709;
double r414711 = exp(r414710);
double r414712 = sqrt(r414711);
double r414713 = r414708 * r414712;
double r414714 = exp(r414709);
double r414715 = 2.0;
double r414716 = r414709 / r414715;
double r414717 = pow(r414714, r414716);
double r414718 = r414713 * r414717;
return r414718;
}




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