Average Error: 5.7 → 5.7
Time: 2.4s
Precision: binary64
\[{\left(1 + x\right)}^{y}\]
\[{\left(1 + x\right)}^{y}\]
{\left(1 + x\right)}^{y}
{\left(1 + x\right)}^{y}
double code(double x, double y) {
	return ((double) pow(((double) (1.0 + x)), y));
}
double code(double x, double y) {
	return ((double) pow(((double) (1.0 + 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 5.7

    \[{\left(1 + x\right)}^{y}\]
  2. Final simplification5.7

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

Reproduce

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