Average Error: 0.0 → 0.0
Time: 4.9s
Precision: binary64
\[\frac{\pi}{2^{k} \cdot \Gamma\left(k + 1\right)}\]
\[\frac{\pi}{2^{k} \cdot \Gamma\left(k + 1\right)}\]
\frac{\pi}{2^{k} \cdot \Gamma\left(k + 1\right)}
\frac{\pi}{2^{k} \cdot \Gamma\left(k + 1\right)}
double code(double k) {
	return ((double) (((double) M_PI) / ((double) (((double) exp2(k)) * ((double) tgamma(((double) (k + 1.0))))))));
}
double code(double k) {
	return ((double) (((double) M_PI) / ((double) (((double) exp2(k)) * ((double) tgamma(((double) (k + 1.0))))))));
}

Error

Bits error versus k

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[\frac{\pi}{2^{k} \cdot \Gamma\left(k + 1\right)}\]
  2. Final simplification0.0

    \[\leadsto \frac{\pi}{2^{k} \cdot \Gamma\left(k + 1\right)}\]

Reproduce

herbie shell --seed 2020152 
(FPCore (k)
  :name "(/ PI (* (exp2 k) (tgamma (+ k 1))))"
  :precision binary64
  (/ PI (* (exp2 k) (tgamma (+ k 1.0)))))