Hi As expalined peviously you hav to write a function with a vetor of size 8 (the number of endogenous variables) as input and a vetcor of size 8 (the number of equations) as output, each corrdinates of this vector being the residual of an equation (look at the example, it seems to me easy to tarnspsoe to your case...)
It should look like: function resid=Solve_m(param) resid(1)=param(4)-(1/(A*(param(2)/param(1))*(alpha/(1-alpha)))^(alpha-1)); resid(2)=param(7)-1/(A*(param(2)/param(1))*(alpha/(1-alpha)))^(alpha) [etc.]; endfunction then sol=fsolve(Solve_m) w=sol(1). Eric. 2014-09-27 22:53 GMT+02:00 Mathseco <[email protected]>: > If i do some steps manually then need to set this function to zero and want > to calculate value of 'r', Can anybody tell me the code to write for it... > (except r here..all other variables are exogenous in this function) > > > L*((Px*A*(1-alpha))^(1/alpha))*r^(-1/alpha)+(S*((Py*B*(1-beeta))^(1/beeta))*r^(-1/beeta))-K=0; > > > > > > > -- > View this message in context: > http://mailinglists.scilab.org/Simulation-of-static-general-equilbiirum-model-tp4031213p4031222.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive > at Nabble.com. > _______________________________________________ > users mailing list > [email protected] > http://lists.scilab.org/mailman/listinfo/users >
_______________________________________________ users mailing list [email protected] http://lists.scilab.org/mailman/listinfo/users
