MATLAB Computing normalized oscillator states for very large N (Matlab)

AI Thread Summary
Building oscillator wavefunctions numerically in Matlab poses challenges, particularly for large quantum numbers (N>=152), where the normalization term approaches zero, leading to precision issues. Asymptotic expansions for Hermite polynomials (Hn(x)) exist, but they do not confirm unit normalization for large N. While these expansions provide Hn(x), they may not be suitable for numerical normalization without a sufficiently dense grid. A common solution involves using recursion relations to iteratively compute Hermite polynomials, which allows for proper normalization of the wavefunction. This method ensures that the wavefunction remains valid and avoids singularities in matrices, even when ||ψN||2 is less than one.
srihari83
Messages
4
Reaction score
0
Hi everyone, I have a rather fundamental question about building oscillator wavefunctions numerically. I'm using Matlab. Since it's 1/√(2nn!∏)*exp(-x2/2)*Hn(x), the normalization term tends to zero rapidly. So for very large N (N>=152 in Matlab) it is zero to machine precision! Though asymptotic expansions for Hn(x) exist in literature (Abromowitz&Stegun, Polyanin&Manzhirov etc), they never say whether these Hermite polynomials are unit normalized for large N. They don't seem to be, i.e these expressions are just Hn(x). Numerically is not unlikely to be able to unit normalize unless one takes a extremely large & dense grid. But it is ok for my calculations if these functions have a ||ψN||2 <1, only if they are exactly zero, they drive certain matrices to singularity. so how do people calculate these polynomials without numbers getting exactly zero?? Any help/advice is greatly appreciated!
 
Last edited:
Physics news on Phys.org
The most common approach for calculating oscillator wavefunctions numerically is to use the recursion relations. These recurrence relations can be used to iteratively calculate the Hermite polynomials for large values of N. Once the Hermite polynomial is calculated, the wavefunction can then be obtained by multiplying the Hermite polynomial with the appropriate normalization constant. This approach will also ensure that the wavefunction is always properly normalized.
 
Back
Top