Guest User

Untitled

a guest
Dec 17th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. [Psi] = NDSolve[{I D[u[t, x], t] == -D[u[t, x], {x, 2}] +
  2. I Sin[x] u[t, x], u[0, x] == Exp[-x^2] Exp[I x], u[t, -Pi] == u[t, Pi]}, u, {t, 0, 5}, {x, -Pi, Pi}]
  3.  
  4. DensityPlot[Evaluate[Abs[u[x, t]] /. [Psi]], {x, -Pi, Pi}, {t, 0, 5}, PlotPoints -> 200, Mesh -> False]
Add Comment
Please, Sign In to add comment