Assignment 2
part_sum_c.m
to plot trigonometric polynomials of
the form
y(t) = a0 + a1cos(t)+ b1sin(t) + a2cos(2t)+ b2sin(2t) + ... + ancos(nt)+ bnsin(nt)
part_sum_c.m
. You will need to use a a fourth
argument in part_sum_c.m
; namely,
y=part_sum_c(a,b,t,1)
To show that ∫0π sin(nx) sin(mx)dx is 0 if n is not equal to m, and π/2 if n=m. Next, follow the method of Lecture 2 to derive the coefficients in the sine series for a function f defined on [0,π].