Filter löschen
Filter löschen

integration not giving a numerical answer?

2 Ansichten (letzte 30 Tage)
Seb apple
Seb apple am 10 Aug. 2020
Kommentiert: Seb apple am 10 Aug. 2020
Hi I can not understand why I am not reciveing a numerical answer for I for my intergration code below. I dont know if it has something to do with the fact it involves besselj fuction. can anyone help me?
syms x
r=[2.40482555770, 5.52007811029, 8.65372791291, 11.7915344390, 14.9309177085, 18.0710639679, 21.2116366299, 24.3524715308, 27.4934791320, 30.6346064684, 33.7758202136, 36.9170983537, 40.0584257646, 43.1997917132, 46.3411883717, 49.4826098974]
g=9.81;
i=1;
k=1;
L=50;
ai=0.5*r(i)*sqrt(g/L);
ak=0.5*r(k)*sqrt(g/L);
xi=2*ai*sqrt((L-x)/g);
xk=2*ak*sqrt((L-x)/g);
m=(besselj(0,xi)*besselj(0,xk));
I=int(m,x,0,L)

Akzeptierte Antwort

hosein Javan
hosein Javan am 10 Aug. 2020
vpa(I)
ans =
13.475706197048467507041153147166

Weitere Antworten (0)

Kategorien

Mehr zu Programming 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!

Translated by