Average Error: 0.0 → 0.0
Time: 16.9s
Precision: 64
\[x \cdot e^{y \cdot y}\]
\[{\left(e^{y}\right)}^{y} \cdot x\]
x \cdot e^{y \cdot y}
{\left(e^{y}\right)}^{y} \cdot x
double f(double x, double y) {
        double r834416 = x;
        double r834417 = y;
        double r834418 = r834417 * r834417;
        double r834419 = exp(r834418);
        double r834420 = r834416 * r834419;
        return r834420;
}

double f(double x, double y) {
        double r834421 = y;
        double r834422 = exp(r834421);
        double r834423 = pow(r834422, r834421);
        double r834424 = x;
        double r834425 = r834423 * r834424;
        return r834425;
}

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. Simplified0.0

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

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

Reproduce

herbie shell --seed 2019196 +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))))