How can I integrate by using bessel function

4 Ansichten (letzte 30 Tage)
JITEN RANJAN
JITEN RANJAN am 6 Mär. 2024
Kommentiert: Dyuman Joshi am 15 Mär. 2024
L = integral (besselj(0,x)*x^2)k,1)

Antworten (2)

Manikanta Aditya
Manikanta Aditya am 6 Mär. 2024
Verschoben: Torsten am 6 Mär. 2024
Hey,
Check how you can integrate using bessel function:
% Define the lower limit of integration
k = 0; % Example value, replace 0 with your actual k value
% Define the anonymous function to be integrated
f = @(x) besselj(0, x) .* x.^2;
% Perform the numerical integration
L = integral(f, k, 1);
% Display the result
disp(L);
0.2855
Thanks!

Dyuman Joshi
Dyuman Joshi am 6 Mär. 2024
You can also make the integration a function of k, and obtain the integral value for different inputs -
fun = @(x) besselj(0,x).*x.^2;
L = @(k) integral(fun, k, 1)
L = function_handle with value:
@(k)integral(fun,k,1)
L(0)
ans = 0.2855
L(0.5)
ans = 0.2454
However, if you want to get the integral as an expression, you will need to use symbolic integration for that - int (Note - requires the Symbolic Math Toolbox).

Kategorien

Mehr zu Bessel functions finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by