Get an expansion for an odd function as a sum of sines:
The function values on a uniformly spaced grid with
n points on
[-L, L):
Compute the DST-I and renormalize:
The function has, in effect, been periodized with a particular odd symmetry:
Plot the expansion error where the points are defined:
Approximate the second derivative for a function with zero boundary conditions:
Solve the wave equation for a plucked string: