Average Error: 0.0 → 0.0
Time: 10.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 r39634616 = x;
        double r39634617 = y;
        double r39634618 = r39634617 * r39634617;
        double r39634619 = exp(r39634618);
        double r39634620 = r39634616 * r39634619;
        return r39634620;
}

double f(double x, double y) {
        double r39634621 = y;
        double r39634622 = r39634621 * r39634621;
        double r39634623 = exp(r39634622);
        double r39634624 = x;
        double r39634625 = r39634623 * r39634624;
        return r39634625;
}

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