I\'m working on a machine-learning code that calculate the cost function and gradient descent , I wrote every function separately as shown:
def costFunction(t