[Scilab-users] Simulation of static general equilbiirum model

Eric Dubois grocer.toolbox at gmail.com
Sat Sep 27 18:25:54 CEST 2014


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 <rashmi.19 at gmail.com>:

> 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
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20140927/64a05fce/attachment.htm>


More information about the users mailing list