Mathematica Can you graph complex #'s in Mathematica?

AI Thread Summary
To evolve a one-dimensional wavefunction forward in time, the discussion highlights that since it is an eigenstate of the Hamiltonian, its time dependence can be expressed as e^(-i * w * t). The user seeks to graph this wavefunction on the x-axis and animate its rotation through the real and complex planes. Initial attempts using Plot3D were unsuccessful, leading to the suggestion of using ParametricPlot3D for better results. A Manipulate function is proposed to animate the ground state of an infinite square well, demonstrating the wavefunction's behavior over time. The option ViewPoint -> {0, Infinity, 0} is recommended for a standard real plot view. Additionally, a link to a Mathematica notebook is provided, showcasing various features of time-dependent wavefunctions, including superposition.
DharmaBum
Messages
2
Reaction score
0
I want to evolve a 1 dimensional wavefunction forward in time. It is an eigenstate of the Hamiltonian, so its time dependence is e^(-i * w * t). Is there a way to graph it on the x-axis and animate it to show how it rotates through the real and complex planes?
This is how I have tried it; it doesn't work.
Plot3D[ψ[x, 100, .1, 1, t], {x, 0, 100}, {t, 0, 600}, AxesLabel -> {"
Real", "x", "\[ImaginaryI]"}]
 
Physics news on Phys.org
ParametricPlot3D to the rescue!
Manipulate[
ParametricPlot3D[{Sin[Pi*q/2]*Cos[-Pi*t/50],
Sin[Pi*q/2]*Sin[-Pi*t/50], q}, {q, 0, 2},
AxesLabel -> {"Re", "Im", "x"}, PlotStyle -> {Thick, Red},
PlotRange -> {{-1.0, 1.0}, {-1.0, 1.0}, {0.0, 2.0}}], {t, 0, 100, 0.1}]
This will play the ground state of an infinite square well forward in time. If you use the option, ViewPoint -> {0, Infinity, 0}, you will see the standard real plot.
I have put together a http://spot.colorado.edu/~goldy/Mathematica/TimeDependentWaveFunction.nb" which shows some of the features you can show (such as superposition).
 
Last edited by a moderator:

Similar threads

Replies
4
Views
3K
Replies
6
Views
4K
Replies
12
Views
2K
Replies
2
Views
5K
Replies
2
Views
2K
Replies
1
Views
3K
Replies
3
Views
4K
Replies
5
Views
4K
Back
Top