Average Error: 0.0 → 0
Time: 1.4s
Precision: binary64
\[e^{\log x \cdot y}\]
\[{x}^{y}\]
e^{\log x \cdot y}
{x}^{y}
double code(double x, double y) {
	return ((double) exp(((double) (((double) log(x)) * y))));
}
double code(double x, double y) {
	return ((double) pow(x, y));
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[e^{\log x \cdot y}\]
  2. Simplified0

    \[\leadsto \color{blue}{{x}^{y}}\]
  3. Final simplification0

    \[\leadsto {x}^{y}\]

Reproduce

herbie shell --seed 2020152 
(FPCore (x y)
  :name "(exp (* (log x) y))"
  :precision binary64
  (exp (* (log x) y)))