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 r737538 = x;
double r737539 = y;
double r737540 = r737539 * r737539;
double r737541 = exp(r737540);
double r737542 = r737538 * r737541;
return r737542;
}
double f(double x, double y) {
double r737543 = x;
double r737544 = y;
double r737545 = exp(r737544);
double r737546 = 2.0;
double r737547 = r737544 / r737546;
double r737548 = pow(r737545, r737547);
double r737549 = r737543 * r737548;
double r737550 = pow(r737545, r737544);
double r737551 = sqrt(r737550);
double r737552 = r737549 * r737551;
return r737552;
}




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 +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))))