 If , is the factorial of a negative integer and hence infinite if we use the gamma function definition of factorials—dividing by infinity gives the expected value of 0.We can replace the factorial by a gamma function to extend any such formula to the complex numbers.Generally, this works for any product wherein each factor is a rational function of the index variable, by factoring the rational function into linear expressions.