⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 schrod.m

📁 matlab6矩阵微分工具 matlab6矩阵微分工具
💻 M
字号:
%  The script file schrod.m computes the first eigenvalue of the Schrodinger %  equation on the half-line using an NxN Laguerre differentiation matrix.% J.A.C. Weideman, S.C. Reddy 1998N = input(' Order of the differentiation matrix: N = ? ');b = input(' Scaling parameter of the Laguerre method: b = ? ');r = 5.08685476; epsi = 0.929852862;   % Parameters for Woods-Saxon potential[x,D] = lagdif(N+1,2,b);              % Compute Laguerre  derivative matrix,D2 = D(2:N+1,2:N+1,2);                % and enforce boundary conditions.x  = x(2:N+1);Q = diag(1./(1+exp((x-r)/epsi)));     % Woods-Saxon potentialI = eye(size(D2));                    % Identity matrix e = min(eig(-D2+I,Q))                 % Compute smallest eigenvalue

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -