Mittag-Leffer函数, Matlab内部函数

时间:2023-01-23 16:27:45

Mittag-Leffer函数: $E_{\alpha,\beta}(x) = \sum\limits^{\infty}_{k=0} \frac{x^k}{ \Gamma( \alpha k + \beta ) }$
Matlab内部函数表示:

 function u = Mitt_Leff( x,alph,beta,degree)
%MITT_LEFF Mittag-Leffer函数
% E_alph_beta = \limits\sum^{n or \infty}_{k=} \frac{x^n}{ \gamma( \alpha n + \beta ) }
% degree:截取的项数(字符型),一般为‘’即可
% alph,beta:为Mittag-Leffer函数的参数
% x:可以为向量或者标量
% \alpha = \beta = 1时,Mitt_Leff( x,,,degree ) = e^x.
% Author: Hu Dongdong
n = str2double( degree );
len = length( x );
u = zeros( ,len );
for i =:len
u( i ) = sum( x(i).^linspace( ,n,n+ ) ./ gamma( alph * linspace( ,n,n+ ) + beta ) );
end end