Average Error: 0.0 → 0.0
Time: 11.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 r29094537 = x;
        double r29094538 = y;
        double r29094539 = r29094538 * r29094538;
        double r29094540 = exp(r29094539);
        double r29094541 = r29094537 * r29094540;
        return r29094541;
}

double f(double x, double y) {
        double r29094542 = y;
        double r29094543 = r29094542 * r29094542;
        double r29094544 = exp(r29094543);
        double r29094545 = x;
        double r29094546 = r29094544 * r29094545;
        return r29094546;
}

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