x \cdot e^{y \cdot y}\left(x \cdot {\left(e^{y}\right)}^{\left(\frac{y}{2}\right)}\right) \cdot \sqrt{{\left(e^{y}\right)}^{y}}double f(double x, double y) {
double r857954 = x;
double r857955 = y;
double r857956 = r857955 * r857955;
double r857957 = exp(r857956);
double r857958 = r857954 * r857957;
return r857958;
}
double f(double x, double y) {
double r857959 = x;
double r857960 = y;
double r857961 = exp(r857960);
double r857962 = 2.0;
double r857963 = r857960 / r857962;
double r857964 = pow(r857961, r857963);
double r857965 = r857959 * r857964;
double r857966 = pow(r857961, r857960);
double r857967 = sqrt(r857966);
double r857968 = r857965 * r857967;
return r857968;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
rmApplied add-log-exp0.0
Applied exp-to-pow0.0
rmApplied add-sqr-sqrt0.0
Applied associate-*r*0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2020027
(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))))