can I find a solution for this integral?
Show older comments
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 Comments
Shreen El-Sapa
on 3 Aug 2021
Walter Roberson
on 3 Aug 2021
What is size(x), size(y), size(n) ?
Shreen El-Sapa
on 3 Aug 2021
Edited: Walter Roberson
on 3 Aug 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
on 3 Aug 2021
The NaN appears to show up when x and y are both negative.
Shreen El-Sapa
on 3 Aug 2021
Shreen El-Sapa
on 4 Aug 2021
Accepted Answer
More Answers (0)
Categories
Find more on Calculus in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!