Numerical value for sum of bessel functions
1 次查看(过去 30 天)
显示 更早的评论
I would like to find as numerical value the sum of bessel functions A0 .
Is it possible to speed it ?
x= linspace(-2,2,100); [X,XX]=meshgrid(x,x)
% X matrix,
syms k
A0 = symsum(((-1)^k).*((X).^(2*k)).*besselj(2*k,X), k, 0, 10);
0 个评论
采纳的回答
Torsten
2019-3-11
k = 0:10;
x = 3;
A0 = sum((-1).^k.*x.^(2*k).*besselj(2*k,x))
If x is a vector, use
A0 = arrayfun(@(x)sum((-1).^k.*x.^(2*k).*besselj(2*k,x)),x)
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Bessel functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!