Average Error: 0.0 → 0.0
Time: 18.9s
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 r34028125 = x;
        double r34028126 = y;
        double r34028127 = r34028126 * r34028126;
        double r34028128 = exp(r34028127);
        double r34028129 = r34028125 * r34028128;
        return r34028129;
}

double f(double x, double y) {
        double r34028130 = y;
        double r34028131 = r34028130 * r34028130;
        double r34028132 = exp(r34028131);
        double r34028133 = x;
        double r34028134 = r34028132 * r34028133;
        return r34028134;
}

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 2019164 +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))))