Average Error: 0.0 → 0.0
Time: 3.6s
Precision: 64
\[x \cdot e^{y \cdot y}\]
\[e^{y \cdot y} \cdot x\]
x \cdot e^{y \cdot y}
e^{y \cdot y} \cdot x
double f(double x, double y) {
        double r671376 = x;
        double r671377 = y;
        double r671378 = r671377 * r671377;
        double r671379 = exp(r671378);
        double r671380 = r671376 * r671379;
        return r671380;
}

double f(double x, double y) {
        double r671381 = y;
        double r671382 = r671381 * r671381;
        double r671383 = exp(r671382);
        double r671384 = x;
        double r671385 = r671383 * r671384;
        return r671385;
}

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. Final simplification0.0

    \[\leadsto e^{y \cdot y} \cdot x\]

Reproduce

herbie shell --seed 2019194 
(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))))