Hi. fsolve solves f(x)=0 where f is your function. So you have to remove the '=0' from your function.
Éric. PS : in a function the '=' is used to define the value of a variable in the lhs. 2014-09-27 18:11 GMT+02:00 Mathseco <[email protected]>: > I tried to write a function solve_m on my own but not getting it right and > getting lot of errors... > I have 8 endogenous variables i.e.w,ws,X,Y,alx,aly,asx,asy... > > function [w,ws,X,Y,alx,aly,asx,asy]=Solve_m(L,S,Px,Py,t,alpha,beeta,A,B) > alx-(1/(A*(ws/w)*(alpha/(1-alpha)))^(alpha-1))=0; > asx-1/(A*(ws/w)*(alpha/(1-alpha)))^(alpha)=0; > aly-(1/(B*(ws/w)*(beeta/(1-beeta)))^(beeta-1))=0; > asy-(1/(B*(ws/w)*(beeta/(1-beeta)))^(beeta))=0; > Px-((alx*w)+(asx*ws))=0; > Py-(((aly*w)+(asy*ws))/(1+t))=0; > L-((alx*X)+(aly*Y))=0; > S-((asx*X)+(asy*Y))=0; > endfunction > > Then i called function Solve_m() by providing all the values for exogenous > variables...But m getting error Warning: obsolete use of '=' instead of > '=='. > Px-((alx*w)+(asx*ws))=0; > ! > at line 3 of function Solve_m called by : > endfunction > > Can you help where am making mistake ? > > Thanks > > > > -- > View this message in context: > http://mailinglists.scilab.org/Simulation-of-static-general-equilbiirum-model-tp4031213p4031219.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
