Average Error: 0.1 → 0.1
Time: 4.7s
Precision: binary64
\[e^{\log x \cdot \log y}\]
\[{x}^{\left(\log y\right)}\]
e^{\log x \cdot \log y}
{x}^{\left(\log y\right)}
double code(double x, double y) {
	return ((double) exp(((double) (((double) log(x)) * ((double) log(y))))));
}
double code(double x, double y) {
	return ((double) pow(x, ((double) log(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.1

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

    \[\leadsto \color{blue}{{x}^{\left(\log y\right)}}\]
  3. Final simplification0.1

    \[\leadsto {x}^{\left(\log y\right)}\]

Reproduce

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