I am trying to write a MATLAB code. The MATLAB results a warning "Warning: Explicit integral could not be found" and does not solve. Why?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Akshay Pratap Singh
am 3 Dez. 2018
Kommentiert: madhan ravi
am 4 Dez. 2018
The MATLAB code is written as follows:
syms delm phim kpm nup y1
phi=(pi/180)*39;
del=(pi/180)*26;
beta=0.5;
phim=phi*beta*(1-(y1));
delm=((phim)/(phi))*del;
nup=((asin(sin(delm))/(sin(phim)))+delm)/2;
kpm=(cos(delm)/(1-sin(phim)))*(cos(delm)+sqrt((sin(phim))^2-(sin(delm))^2))*exp(2*nup*tan(phim));
fu=kpm*cos(delm)*y1*y1;
int(fu,0.1,0.2)
0 Kommentare
Akzeptierte Antwort
madhan ravi
am 3 Dez. 2018
Bearbeitet: madhan ravi
am 3 Dez. 2018
Read about matlabFunction() and integral() to solve your integral numerically since the symbolic engine is not able to solve it symbollically.
syms y1
phi=(pi/180)*39;
del=(pi/180)*26;
beta=0.5;
phim=phi*beta*(1-(y1));
delm=((phim)/(phi))*del;
nup=((asin(sin(delm))/(sin(phim)))+delm)/2;
kpm=(cos(delm)/(1-sin(phim)))*(cos(delm)+sqrt((sin(phim))^2-(sin(delm))^2))*exp(2*nup*tan(phim));
fu=matlabFunction(kpm*cos(delm)*y1*y1);
Final_result=integral(fu,0.1,0.2)
command window:
Final_result =
0.0048
2 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!