add approximations to factorial and partition function