-differentiation program to accept arbitrary number of terms.