have a question calculating integral
显示 更早的评论
hello guys.
I set up the functions and try to solve the integral but a error has occured.
my code :
syms L;
syms W;
syms a;
syms q;
syms n;
syms m;
syms R;
q = H./L;
a = W./q;
b = (W*(1-R)/(2*q));
m = (0.01*(81.0*W^2 + 180.0*b*W))/a;
n=sqrt(a*m+b^2)-m-b;
syms x;
f=sqrt(a*x+b^2)-x-b;
h=W*0.9-x;
m=(0.01*(80.1*W^2+180.0*b*W)/a);
n=sqrt(a*m+b^2)-m-b;
syms t;
f=@(x) sqrt(a*x+b^2)-x-b;
g=@(x,t) (sqrt(a*t+b^2)-t-b)/t*x;
p=@(x,t) ((sqrt(a*t+b^2)-t-b)-n)/(t-m)*(x-m)+n;
a=integral (f,0,m)-integral (g,0,t)-integral(p,t,m);
and here, I want to calculate the total integral, but some error has occured..
how do I solve it?
thank you.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!