Mathematical Function In Numpy Python Definition