Numerical value for sum of bessel functions

조회 수: 4 (최근 30일)
Ole
Ole 2019년 3월 11일
답변: Torsten 2019년 3월 11일
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);

채택된 답변

Torsten
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개)

카테고리

Help CenterFile Exchange에서 Bessel functions에 대해 자세히 알아보기

제품


릴리스

R2016b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by