% Math 3150-1, fall 2008
%
% Script to precompute the first n zeros of the first m Bessel functions of the
% first kind (each column of alpha contains the given zeros). The function
% besselzero by Greg von Winckel is available in Matlab Central:
%
%   http://www.mathworks.com/matlabcentral/fileexchange/6794

n=20; m=20;
alpha = zeros(n,m);
for i=0:m,
 alpha(:,i+1) = besselzero(i,n,1);
end;
save('-v4','bz.mat','alpha');
