Average Error: 3.8 → 0.2
Time: 1.8s
Precision: binary64
\[e^{\log x \cdot \left(y + 1\right)}\]
\[{x}^{\left(y + 1\right)}\]
e^{\log x \cdot \left(y + 1\right)}
{x}^{\left(y + 1\right)}
double code(double x, double y) {
	return ((double) exp(((double) (((double) log(x)) * ((double) (y + 1.0))))));
}
double code(double x, double y) {
	return ((double) pow(x, ((double) (y + 1.0))));
}

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 3.8

    \[e^{\log x \cdot \left(y + 1\right)}\]
  2. Simplified0.2

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

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

Reproduce

herbie shell --seed 2020153 
(FPCore (x y)
  :name "(exp (* (log x) (+ y 1)))"
  :precision binary64
  (exp (* (log x) (+ y 1.0))))