The integral result comes as a function rather than a value.
Show older comments
Hello I do integral function, but the integral result comes as a function rather than a value. I'm using matlab R2016b The code is as follows
syms E
m=0.01;
L=0.1;
g=10;
w=10e-10;
A=1;
h=10e-34;
k1=(2*E*m*L^2/(3*h^2))^1/2;
k2=((2*m*L^2/(3*h^2))*((m*g*(w^2))/(4*L)-E))^1/2;
k3=((2*m*L^2/(3*h^2))*((m*g*L/2)+E))^1/2;
F=2*A*exp((-k2*w/L))*cos(k1*w/(2*L))*(1+(k2/k3)^2)^1/2;
T=k3*(F^2)/(k1*(A^2));
W=(6*E/(m*(L^2)))^1/2;
tr=w/(L*W);
X=1/(1+T);
P=(tr/T)*(1/(1+T));
V=(m*g*w^2)/(4*L);
t=int(P,'E',0,'V') /int(X, 'E', 0, 'V');
Then t comes "int()/int()" rather than a value I want a value
Thank you
Answers (1)
John D'Errico
on 18 Nov 2017
Edited: John D'Errico
on 18 Nov 2017
0 votes
Is it true that all equations have an analytical solution? All integrals have some nice, closed form solution? Of course not. Is it easy to write down problems that have no solution? Of course. I can even think of problems where a closed form solution exists, but is not directly solvable using brute force. Instead, some finesse is needed.
You want a nice, closed form solution, but there are a lot of things we all want. The Stones said it best ... "We can't always get what we want".
Categories
Find more on 프로그래밍 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!