Keywords: Quantum Harmonic Oscillator Levels.png quantum harmonic oscillator for energy levels n 0 to 20 The probability density is shown by the colour black is the lowest white is the highest own Inductiveload 2009-04-19 Mathematica Code <pre><nowiki> QHO wavefunction psin_ x_ Exp-x 2/2 / Sqrt2 n n SqrtPi HermiteHn x; Colour function colourFuncx_ Blend Black Red Yellow White x 1 8 ; Generates a single strip showing one QHO energy level wavefunction leveln_ DensityPlot psin x 2 x -8 8 y 0 1 PlotRange -> 0 0 7 PlotPoints -> 100 2 Frame -> False ColorFunction -> colourFunc AspectRatio -> 1/32 ImageSize -> 1600 Method -> ShrinkWrap -> True Remove whitespace at edges ColorFunctionScaling -> False Have a consistent CF scaling ; Assemble the entire drawing of all levels graphic GraphicsGrid ReverseTable levelk k 0 20 Spacings -> 0 </nowiki></pre> 1D quantum harmonic oscillators |