Find oscillations of a vibrating string by solving the 1-D wave equation

asked 10 years ago

fomel_sergey gravatar image

updated 10 years ago

FrédéricC gravatar image

Find oscillations of a vibrating string by solving the 1-D wave equation

(1/v^2)(d^2 u/dt^2) - (d^2 u/dx^2) = 0

for u(x,t) in the interval -1<=x<=1 and t>0

with initial conditions

u(x,0) = (1- abs(x))/2

and

du/dt @ t=0

and boundary conditions u(-1,t)=u(1,t)=0

Plot u(x,t) at different points in time t.

Question: How do I go about this and how do I use sage to solve this.

Thanks.

Preview: (hide)

Comments

About the formatting in your question: you can apply code formatting to lines of code by selecting them and clicking the "code" button in the question editor (the button with "010 101"). Or indent them by four spaces.

slelievre gravatar imageslelievre ( 10 years ago )