Average Error: 0.0 → 0.0
Time: 8.3s
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 r39547447 = x;
        double r39547448 = y;
        double r39547449 = r39547448 * r39547448;
        double r39547450 = exp(r39547449);
        double r39547451 = r39547447 * r39547450;
        return r39547451;
}

double f(double x, double y) {
        double r39547452 = y;
        double r39547453 = r39547452 * r39547452;
        double r39547454 = exp(r39547453);
        double r39547455 = x;
        double r39547456 = r39547454 * r39547455;
        return r39547456;
}

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