24小时热门版块排行榜    

查看: 347  |  回复: 0

tshgth

新虫 (小有名气)

[求助] 解符号方程的错误提示问题

for theta=(0:10:90)*3.1415926/180;
syms Rp
b1=1/(2-yita)*(1+rou)*alpha./Rp.*(1-kezei*Rp./(Rp-R0))+alpha*kezei*(1+rou)./((3-yita).*(Rp-R0));
b2=kezei*rou./((1-yita).*(Rp-R0))+1/yita.*(1-kezei*Rp./(Rp-R0))*rou./Rp;
b3=1/(2-yita)*(1+rou)*alpha./Rp.^2.*(1-kezei.*Rp./(Rp-R0))*R0+alpha*kezei*(1+rou)./((3-yita).*(Rp-R0))*R0^2./Rp.^2;
b4=kezei*rou./((1-yita).*(Rp-R0))+1/yita.*(1-kezei.*Rp/(Rp-R0))*rou/R0;
myfun=thegma_c0.*(b1-b2)+(P0-thegma_c0.*(b3-b4)).*(R0./Rp).^(1-yita)-thegma_pe;
ezplot(myfun);
hold on
end
Rp=fzero(@(Rp)(thegma_c0.*(b1-b2)+(P0-thegma_c0.*(b3-b4)).*(R0./Rp).^(1-yita)-thegma_pe),4);
本人程序如上,其中Rp为待求量,其余均为常数,程序可以运行到ezplot(myfun),运行到最后一行解方程时就提示
??? Function 'isfinite' is not defined for values of class 'sym'.
Error in ==> isfinite at 19
  [varargout{1:nargout}] = builtin('isfinite', varargin{:});
Error in ==> fzero at 309
    elseif ~isfinite(fx) || ~isreal(fx)
Error in ==> plasarea_onlyruanhua at 48
Rp=fzero(@(Rp)(thegma_c0.*(b1-b2)+(P0-thegma_c0.*(b3-b4)).*(R0./Rp).^(1-yita)-thegma_pe),4);
不知什么原因,请大家帮忙给指点一下。
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

智能机器人

Robot (super robot)

我们都爱小木虫

找到一些相关的精华帖子,希望有用哦~

科研从小木虫开始,人人为我,我为人人
相关版块跳转 我要订阅楼主 tshgth 的主题更新
信息提示
请填处理意见