Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

How to plot and animate an ODE in Maple using finite difference scheme

  1. Feb 23, 2013 #1
    Hi,

    I am currently trying to plot and animate a wave function using the Schrodinger equation.

    I currently have the following finite difference equation:-

    i(\psi(x, t+\Delta t)-\psi(x,t))/(\Delta t)=-(1/2)*(\psi(x+\Delta x, t)+\psi(x-\delta x, t)-2*\psi(x,t))/((\Delta x)^2)+V(x)*\psi(x,t)

    Would I set x=-10, for example, where I plan to plot between -10 and 10 so the length L would be L=20 and \Delta x=L/N where N is the number of differences? Should I rearrange for \psi(x,t)?

    As you can probably tell, I'm lost on what I need to do, any help or a similar example would be greatly appreciated.

    Thanks
     
  2. jcsd
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted



Similar Discussions: How to plot and animate an ODE in Maple using finite difference scheme
Loading...