Template Function helpme::nonTemplateGammaComputer

Function Documentation

template<typename Real>
Real helpme::nonTemplateGammaComputer(int twoS)

Computes the Gamma function using recursion instead of template metaprogramming. \( \Gamma[s] = \int_0^\infty t^{s-1} e^{-t} \mathrm{d}t \) In this code we only need half integral values for the \(s\) argument, so the input argument \(s\) will yield \(\Gamma[\frac{s}{2}]\).

Template Parameters:

Real – the floating point type to use for arithmetic.

Parameters:

twoS – twice the s value required.