?? legroots.m
字號:
function r = legroots(N);% The function r = legroots(N) computes the roots of the % Legendre polynomial of degree N.% J.A.C. Weideman, S.C. Reddy 1998.n = [1:N-1]; % Indicesd = n./sqrt(4*n.^2-1); % Create subdiagonalsJ = diag(d,1)+diag(d,-1); % Create Jacobi matrixr = sort(eig(sparse(J))); % Compute eigenvalues
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -