MATLAB编写程序不知道错哪里了
clcclearsymsyy0detamuQEMNy0=0;deta=1.14;mu=1.14;Q=-0.2;E=y0^2*(deta^2-1)+1/(4*y0)*log...
clc
clear
syms y y0 deta mu Q E M N
y0=0;
deta =1.14;
mu = 1.14;
Q=-0.2;
E=y0^2*(deta^2 - 1)+1/(4*y0)*log((deta^2 + y0 - 1)/(y0*deta^2))+(deta^2 - 1)/(2*y0)-1/4*log((deta^2 + y0 - 1)/y0)- mu*((y0/2*log(deta))-(deta^2 - 1)/(4*y0^2)-y0*(deta^2 - 1)/2+y0*2/4*log((deta^2 + y0 - 1)/y0)-y0^2/2*log(deta)-y/4*log((deta^2 + y0 - 1)/y0))-Q*y0;
N = y*(deta^2 - 1)*(deta^2 - 1) - 2*y^2*(deta^2 - 1) + 2*y^3*log((deta^2 + y - 1)/y) + mu*((4*log(deta)) + (deta^2 - 1)*(deta^2 - 1) - 2*(deta^2 - 1));
M = 8*y^6*(deta^2 - 1) + 8*y^3*log((deta^2 + y - 1)/(y*deta^2)) + 16*y^3*(deta^2 - 1) - 8*y^4*log((deta^2 + y - 1)/y) - 32*Q*y^5 - 32*y^4*E + mu*(16*y^6*log(deta) - 16*y^5*log(deta) + 16*y^5*(deta^2 - 1) + 8*y^2*(deta^2 - 1) - 8*y^6*log((deta^2 + y - 1)/y) + 8*y^5*log((deta^2 + y - 1)/y));
f=sqrt(N/M);
V=int(f,y,0,1);
eval(V);
运行之后的结果不是ans V,而是f,并且f里面居然含有x,求大神给指点,纠结老久了 展开
clear
syms y y0 deta mu Q E M N
y0=0;
deta =1.14;
mu = 1.14;
Q=-0.2;
E=y0^2*(deta^2 - 1)+1/(4*y0)*log((deta^2 + y0 - 1)/(y0*deta^2))+(deta^2 - 1)/(2*y0)-1/4*log((deta^2 + y0 - 1)/y0)- mu*((y0/2*log(deta))-(deta^2 - 1)/(4*y0^2)-y0*(deta^2 - 1)/2+y0*2/4*log((deta^2 + y0 - 1)/y0)-y0^2/2*log(deta)-y/4*log((deta^2 + y0 - 1)/y0))-Q*y0;
N = y*(deta^2 - 1)*(deta^2 - 1) - 2*y^2*(deta^2 - 1) + 2*y^3*log((deta^2 + y - 1)/y) + mu*((4*log(deta)) + (deta^2 - 1)*(deta^2 - 1) - 2*(deta^2 - 1));
M = 8*y^6*(deta^2 - 1) + 8*y^3*log((deta^2 + y - 1)/(y*deta^2)) + 16*y^3*(deta^2 - 1) - 8*y^4*log((deta^2 + y - 1)/y) - 32*Q*y^5 - 32*y^4*E + mu*(16*y^6*log(deta) - 16*y^5*log(deta) + 16*y^5*(deta^2 - 1) + 8*y^2*(deta^2 - 1) - 8*y^6*log((deta^2 + y - 1)/y) + 8*y^5*log((deta^2 + y - 1)/y));
f=sqrt(N/M);
V=int(f,y,0,1);
eval(V);
运行之后的结果不是ans V,而是f,并且f里面居然含有x,求大神给指点,纠结老久了 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询