calculate integral of this function
3 次查看(过去 30 天)
显示 更早的评论
Hi guys, could you please help me with this simple integral!! Thanks in advance.
p1= 2e-03 ;
p2= 6e-03 ;
p0=p1+p2;
Pi= p0/2;
theta= deg2rad(60) ;
H0= tan(theta)*p1 ;
syms H V M0 Fi x
Fi = H0-x*tan(theta);
M=H*Fi+V*x-M0;
dM_dH=diff(M,H);
F1= integral(@(x) (dM_dH).^2/cos(theta),0,Pi)
0 个评论
采纳的回答
Torsten
2023-4-14
F1 = double(int(dM_dH^2/cos(theta),x,0,Pi))
instead of
F1= integral(@(x) (dM_dH).^2/cos(theta),0,Pi)
1 个评论
Walter Roberson
2023-4-14
I also recommend converting your constants to symbolic
format long g
p1= 2e-03 ;
p2= 6e-03 ;
p0=p1+p2;
Pi= p0/2;
theta= deg2rad(60) ;
H0= tan(theta)*p1 ;
syms H V M0 Fi x
Fi = H0-x*tan(theta);
M=H*Fi+V*x-M0;
dM_dH=diff(M,H);
F1s = int(dM_dH^2/cos(theta),x,0,Pi)
F1 = double(F1s)
Q = @(v) sym(v);
p1= Q(2)*sym(10)^(-03) ;
p2= Q(6)*sym(10)^(-03) ;
p0=p1+p2;
Pi= p0/2;
theta= deg2rad(Q(60)) ;
H0= tan(theta)*p1 ;
syms H V M0 Fi x
Fi = H0-x*tan(theta);
M=H*Fi+V*x-M0;
dM_dH=diff(M,H);
F1s = int(dM_dH^2/cos(theta),x,0,Pi)
F1 = double(F1s)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!