SMS: The gamma function