have a question calculating integral
Show older comments
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.
Accepted Answer
More Answers (0)
Categories
Find more on Calculus in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!