結果 : calculate derivative of a function in python