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

Quantum SHO Ladder Operator in Mathcad

  1. Sep 21, 2007 #1
    A Quantum I problem set asks me to graph the first 15 states of the simple harmonic oscillator. Our department uses mathcad heavily, so I think I should write a function that applies the ladder operator repeatedly to generate the wave function. I'm having trouble getting it to actually return a function to me though. Enclosed is the little loop I have written. Any advice on making this actually work?

    Attached Files:

  2. jcsd
  3. Sep 21, 2007 #2
    I figured out the problem. I need to assign the result of the application of the wave function to an intermediate function before assigning it back to psi:

    Attached Files:

  4. Sep 21, 2007 #3
    All right. Now I have another problem. When I attempt to graph psi 3 (x) it takes an extraordinarily long time to process. But if I apply simplify to psi n of x and then paste that into the graph it evaluates in much, much less time. Is there any way to automate this process?
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: Quantum SHO Ladder Operator in Mathcad
  1. MathCad help (Replies: 2)

  2. Mathcad Plot Problem (Replies: 0)

  3. Mathamatics or MathCad (Replies: 2)

  4. Graphs in MathCAD (Replies: 6)