Average Error: 0.0 → 0.1
Time: 2.6s
Precision: binary64
\[\]
\[\]
double code(double x, double y) {
	return ((double) (x * ((double) exp(((double) (y * y))))));
}
double code(double x, double y) {
	return ((double) (x * ((double) cbrt(((double) pow(((double) pow(((double) exp(y)), y)), 3.0))))));
}

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.1
\[\]

Derivation

  1. Initial program 0.0

    \[\]
  2. Simplified0.0

    \[\leadsto \]
  3. Using strategy rm
  4. Applied add-cbrt-cube0.1

    \[\leadsto \]
  5. Simplified0.1

    \[\leadsto \]
  6. Final simplification0.1

    \[\leadsto \]

Reproduce

herbie shell --seed 2020179 
(FPCore (x y)
  :name "Data.Number.Erf:$dmerfcx from erf-2.0.0.0"
  :precision binary64

  :herbie-target
  (* x (pow (exp y) y))

  (* x (exp (* y y))))