ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 09 Dec 2014 02:08:43 -0600Find oscillations of a vibrating string by solving the 1-D wave equationhttp://ask.sagemath.org/question/25174/find-oscillations-of-a-vibrating-string-by-solving-the-1-d-wave-equation/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.
Mon, 08 Dec 2014 17:21:25 -0600http://ask.sagemath.org/question/25174/find-oscillations-of-a-vibrating-string-by-solving-the-1-d-wave-equation/Comment by slelievre for <p>Find oscillations of a vibrating string by solving the 1-D wave equation</p>
<p>(1/v^2)(d^2 u/dt^2) - (d^2 u/dx^2) = 0</p>
<p>for u(x,t) in the interval -1<=x<=1 and t>0</p>
<p>with initial conditions </p>
<p>u(x,0) = (1- abs(x))/2</p>
<p>and </p>
<p>du/dt @ t=0 </p>
<p>and boundary conditions u(-1,t)=u(1,t)=0</p>
<p>Plot u(x,t) at different points in time t.</p>
<p>Question: How do I go about this and how do I use sage to solve this.</p>
<p>Thanks.</p>
http://ask.sagemath.org/question/25174/find-oscillations-of-a-vibrating-string-by-solving-the-1-d-wave-equation/?comment=25175#post-id-25175About 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.Tue, 09 Dec 2014 02:08:43 -0600http://ask.sagemath.org/question/25174/find-oscillations-of-a-vibrating-string-by-solving-the-1-d-wave-equation/?comment=25175#post-id-25175