Average Error: 0.0 → 0.0
Time: 6.8s
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 r40488982 = x;
        double r40488983 = y;
        double r40488984 = r40488983 * r40488983;
        double r40488985 = exp(r40488984);
        double r40488986 = r40488982 * r40488985;
        return r40488986;
}

double f(double x, double y) {
        double r40488987 = y;
        double r40488988 = r40488987 * r40488987;
        double r40488989 = exp(r40488988);
        double r40488990 = x;
        double r40488991 = r40488989 * r40488990;
        return r40488991;
}

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