Contact: aviboots(AT)netvision.net.il
39,990 questions
51,935 answers
573 users
import math print("Gamma(0.5) = ", math.gamma(0.5)) print("Gamma(10) = ", math.gamma(10)) ''' run: Gamma(0.5) = 1.7724538509055159 Gamma(10) = 362880.0 '''
import math for i in [1.1, 2.2, 3.3, 4.4, 5.5, 6.6, 7.7]: print('{:2.1f} {:5.2f}'.format(i, math.gamma(i))) ''' run: 1.1 0.95 2.2 1.10 3.3 2.68 4.4 10.14 5.5 52.34 6.6 344.70 7.7 2769.83 '''