Python Derivative Of Array In Math