The DGAMMA function accepts any number except 0 or a negative integer as an argument and returns the double-precision value of the gamma function at that number. The DGAMMA function is the double-precision equivalent of the GAMMA function, as follows:
DGAMMA(x)=INTEGRAL((t**(x - 1))(e**(-t))dt)from 0 to infinity