Differentiation of sum

Dear Sir:

I have the below sum equation.

Please make some correction to get a solution.

 

with(student);

v:=(w[j])->sqrt(Sum(A[i]*cos(w[j]*t[i]),i=1..n)^(2)+Sum(A[i]*sin(w[j]*t[i]),i=1..n)^(2));

v(w[j]); diff(v(w[j]), w[j]);

value(%);

 

Thanks

parameter name

The indexed name w[j] is an invalid parameter name.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
}