Kindly check if my code for the attached equation is correct as the result obtained is incorrect. If I find that the code is correct, I'll recheck the values I defined.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Swathi S
am 25 Jan. 2019
Kommentiert: Swathi S
am 25 Jan. 2019
The equation is attached below.
CODE:![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/201464/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/201464/image.jpeg)
syms x
fun=(besselj(x,sqrt(a/b)).*besselj(x,sqrt(b/a)).*besselj(x,(gamma/sqrt(a*b))).*exp(-x.*(d./sqrt(a.*b))))
q=int(fun,x,0,Inf)
M1=pi*u*sqrt(a*b)*q;syms x
fun=(besselj(x,sqrt(a/b)).*besselj(x,sqrt(b/a)).*besselj(x,(gamma/sqrt(a*b))).*exp(-x.*(d./sqrt(a.*b))))
q=int(fun,x,0,Inf)
M1=pi*u*sqrt(a*b)*q;
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 25 Jan. 2019
J1(value) in MATLAB becomes besselj(1, value)
J0(value) in MATLAB becomes besselj(0, value)
What you coded is the equivalent of J_x(value)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!