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

asked 2014-12-09 00:21:25 +0100

fomel_sergey gravatar image

updated 2015-01-13 21:39:34 +0100

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.

edit retag flag offensive close merge delete

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 ( 2014-12-09 09:08:43 +0100 )edit