Average Error: 0.0 → 0.0
Time: 24.7s
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 r28643421 = x;
        double r28643422 = y;
        double r28643423 = r28643422 * r28643422;
        double r28643424 = exp(r28643423);
        double r28643425 = r28643421 * r28643424;
        return r28643425;
}

double f(double x, double y) {
        double r28643426 = y;
        double r28643427 = r28643426 * r28643426;
        double r28643428 = exp(r28643427);
        double r28643429 = x;
        double r28643430 = r28643428 * r28643429;
        return r28643430;
}

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