Average Error: 0.0 → 0.0
Time: 6.5s
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 r49884215 = x;
        double r49884216 = y;
        double r49884217 = r49884216 * r49884216;
        double r49884218 = exp(r49884217);
        double r49884219 = r49884215 * r49884218;
        return r49884219;
}

double f(double x, double y) {
        double r49884220 = y;
        double r49884221 = r49884220 * r49884220;
        double r49884222 = exp(r49884221);
        double r49884223 = x;
        double r49884224 = r49884222 * r49884223;
        return r49884224;
}

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