Gamma2

Calculate the gamma function over a range
import sys import math from numpy import arange start = float(sys.argv[1]) stop = float(sys.argv[2]) step = float(sys.argv[3]) for x in arange(start, stop, step): print (round(x,2),round(math.gamma(x),8))
 * 1) !/usr/bin/python