| > | with(plots): |
| > | c:=proc(n) #This procedure computes the coeffients.
8/(n^2*Pi^2) * sin(n*Pi/2) end; |
| > |
| > | c(1); |
| > | c(2); |
| > | c(3); |
| > | m:=100: # This is how many terms (including terms that are zero) we will compute. |
| > | animate((sum((c(n)*sin(n*Pi*x/2)*cos(n*Pi*t/2)),n=1..m)),
x=0..2, t=0..10,frames=50, color=green); |
![[Plot]](images/vibratingstring_5.gif)
| > |