I try to calculate the following integral

3 visualizaciones (últimos 30 días)
Shreen El-Sapa
Shreen El-Sapa el 26 de Nov. de 2023
Comentada: Shreen El-Sapa el 27 de Nov. de 2023
syms r sigma
assume(sigma>0)
assume(k>0 & k<1)
L=int(r*besseli(0,a*r)*besselk(0,a*r)),r,sigma,1)
Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

Respuesta aceptada

Torsten
Torsten el 26 de Nov. de 2023
Editada: Torsten el 26 de Nov. de 2023

Más respuestas (1)

Walter Roberson
Walter Roberson el 26 de Nov. de 2023
I had to guess about what k was in the code.
syms r sigma
assume(sigma>0)
syms a; assume(a>0 & a<1)
L=int(r*besseli(0,a*r)*besselk(0,a*r),r,sigma,1)
L = 
  5 comentarios
Walter Roberson
Walter Roberson el 26 de Nov. de 2023
format long g
syms r
sigma = 0.5;
k = 1/2;
L1 = int(r*besseli(0,k*r)*besselk(0,k*r),r,sigma,1)
L1 = 
L2 = double(L1)
L2 =
0.450428766292829
L3 = vpaintegral(r*besseli(0,k*r)*besselk(0,k*r),r,sigma,1)
L3 = 
0.450429
L4 = integral(@(r) r.*besseli(0,k*r).*besselk(0,k*r), sigma, 1)
L4 =
0.450428766292829
Shreen El-Sapa
Shreen El-Sapa el 27 de Nov. de 2023
Thanks so much

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by