Code covered by the BSD License  

Highlights from
LaguerreEig

image thumbnail
from LaguerreEig by Damian Trif
Calculates numerical eigenvalues and eigenfunctions of Schroedinger problems on (0,infinity).

airy_LagEig.m
n=200;
[x,w]=pd(n);t=x2t(n,x);D=deriv(n);X=mult(n);
V=X;
A=-D^2+V;
A(n,:)=ones(1,n);
B=zeros(n);
B(n,:)=ones(1,n)/(1.e10);
for i=1:n-1 B(i,i)=1;end;
[v,l]=eig(A,B);
L=diag(l);
[L,ind]=sort(L);
psi=v(:,ind);
L(1:10)

Contact us at files@mathworks.com