📄 krawtchouk.m
字号:
% Explicitly compute a set of Krawtchouk polynomials% Todd K. Moon, Sept 2, 2004% Copyright 2004 by Todd K. Moon% Permission is granted to use this program/data% for educational/research onlyn = 14; % set these parameters when calling this functionq = 2;Nmax = 14; % number of polynomials to findsyms xK = sym('K');K(1) = 1; % K_0K(2) = n*(q-1)-q*x; % K_1for k=1:Nmax K(k+2)=simplify(1/(k+1)*((k + (q-1)*(n-k) - q*x)*K(k+1)-(q-1)*(n-k+1)*K(k))); % compute K_{k+1}end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -