Average Error: 0.0 → 0.0
Time: 2.8s
Precision: 64
\[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}}\]
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;
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original0.0
Target0.0
Herbie0.0
\[x \cdot {\left(e^{y}\right)}^{y}\]

Derivation

  1. Initial program 0.0

    \[x \cdot e^{y \cdot y}\]
  2. Using strategy rm
  3. Applied add-log-exp0.0

    \[\leadsto x \cdot e^{\color{blue}{\log \left(e^{y}\right)} \cdot y}\]
  4. Applied exp-to-pow0.0

    \[\leadsto x \cdot \color{blue}{{\left(e^{y}\right)}^{y}}\]
  5. Using strategy rm
  6. Applied add-sqr-sqrt0.0

    \[\leadsto x \cdot \color{blue}{\left(\sqrt{{\left(e^{y}\right)}^{y}} \cdot \sqrt{{\left(e^{y}\right)}^{y}}\right)}\]
  7. Applied associate-*r*0.0

    \[\leadsto \color{blue}{\left(x \cdot \sqrt{{\left(e^{y}\right)}^{y}}\right) \cdot \sqrt{{\left(e^{y}\right)}^{y}}}\]
  8. Simplified0.0

    \[\leadsto \color{blue}{\left(x \cdot {\left(e^{y}\right)}^{\left(\frac{y}{2}\right)}\right)} \cdot \sqrt{{\left(e^{y}\right)}^{y}}\]
  9. Final simplification0.0

    \[\leadsto \left(x \cdot {\left(e^{y}\right)}^{\left(\frac{y}{2}\right)}\right) \cdot \sqrt{{\left(e^{y}\right)}^{y}}\]

Reproduce

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