matlab syms r p w z x;a=10,b=100,c=0.2,m=6,v=4;F=x/10 profr=(r*p-w)*(z+a-b*p)/(1-c)-(r*p-v)*int(F,x,0,z);dprz=diff(profr,'z');dprp=diff(profr,'p');[zstar,pstar]=solve(dprz,dprp,'z','p')profs=(w-m)*(zstar+a-b*pstar)/(1-c)+(1-r)*p*((zstar+a-b*pstar)/(1
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/26 21:02:20
matlab syms r p w z x;a=10,b=100,c=0.2,m=6,v=4;F=x/10 profr=(r*p-w)*(z+a-b*p)/(1-c)-(r*p-v)*int(F,x,0,z);dprz=diff(profr,'z');dprp=diff(profr,'p');[zstar,pstar]=solve(dprz,dprp,'z','p')profs=(w-m)*(zstar+a-b*pstar)/(1-c)+(1-r)*p*((zstar+a-b*pstar)/(1
matlab
syms r p w z x;
a=10,b=100,c=0.2,m=6,v=4;
F=x/10
profr=(r*p-w)*(z+a-b*p)/(1-c)-(r*p-v)*int(F,x,0,z);
dprz=diff(profr,'z');
dprp=diff(profr,'p');
[zstar,pstar]=solve(dprz,dprp,'z','p')
profs=(w-m)*(zstar+a-b*pstar)/(1-c)+(1-r)*p*((zstar+a-b*pstar)/(1-c)-int(F,x,0,z));
dpsw=diff(profs,'w')
wtemp=solve(dpsw,'w')
profstmep=(wtemp-m)*(zstar+a-b*pstar)/(1-c)+(1-r)*p*((zstar+a-b*pstar)/(1-c)-int(F,x,0,z))
dpsr=diff(profs,'r')
rstar=solve(dpsr,'r')
wstar=subs(wtemp,'r',rstar)
para={[z],[p],[w],[r]};
parastar={[zstar],[pstar],[wstar],[rstar]};
profrstar=simple(subs(profr,para,parastar))
para={[w],[r]};
parastar={[wstar],[rsatr]};
profsstar=simple(subs(profr,para,parastar))
运行结果
Error using ==> solve
Error,(in solve) invalid arguments
Error in ==> sym.solve at 49
[varargout{1:max(1,nargout)}] = solve(S{:});
matlab syms r p w z x;a=10,b=100,c=0.2,m=6,v=4;F=x/10 profr=(r*p-w)*(z+a-b*p)/(1-c)-(r*p-v)*int(F,x,0,z);dprz=diff(profr,'z');dprp=diff(profr,'p');[zstar,pstar]=solve(dprz,dprp,'z','p')profs=(w-m)*(zstar+a-b*pstar)/(1-c)+(1-r)*p*((zstar+a-b*pstar)/(1
wtemp=solve(dpsw,'w')
你的这个语句是解不出来的,因为你的方程太复杂了!