can I find a solution for this integral?
Afficher commentaires plus anciens
r=sqrt(x.^2+y.^2);
theta=atan2(y,x);
ab1=1;xi=2;n=10;
h=@(t) (t.*(exp(-xi.*(r.*cos(theta)+ab1))-exp(-t.*(r.*cos(theta)+ab1))).*((-1).^(n-1).*exp(-ab1.*t)./factorial( n )).*t.*besselj(1,t.*r.*sin(theta)));
integral(h, 0, inf)
7 commentaires
Shreen El-Sapa
le 3 Août 2021
Walter Roberson
le 3 Août 2021
What is size(x), size(y), size(n) ?
Shreen El-Sapa
le 3 Août 2021
Modifié(e) : Walter Roberson
le 3 Août 2021
format long g
n = randi([5 10])
x = randn(1,5)
y = randn(1,5)
syms t real
r = sqrt(x.^2+y.^2);
theta = atan2(y,x);
ab1=1; xi=2; n=10;
h=@(t) (t.*(exp(-xi.*(r.*cos(theta)+ab1))-exp(-t.*(r.*cos(theta)+ab1))).*((-1).^(n-1).*exp(-ab1.*t)./factorial( n )).*t.*besselj(1,t.*r.*sin(theta)));
hint = integral(h, 0, inf, 'ArrayValued', true)
Walter Roberson
le 3 Août 2021
The NaN appears to show up when x and y are both negative.
Shreen El-Sapa
le 3 Août 2021
Shreen El-Sapa
le 4 Août 2021
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Calculus dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!