function xprime=goodwin2(t,x)

% Ref. to A.Goergen, "Dynamiques Economiques. 
% Solutions de Problème avec Maple et Matlab", 
% Economica, 2006.
% 
% The model is given by:
%   dx/dt=-y-z;
%   dy/dt=x+a*y;
%   dz/dt=b+z*(x-c);
% where the parameters are a=0.2, b=0.2, c=5.7.
%

a=0.2;
b=0.2;
c=5.7;

xprime=zeros(3,1);
xprime(1)=-x(2)-x(3);
xprime(2)=x(1)+a*x(2);
xprime(3)=b+x(3)*(x(1)-c);

% "Complex and Chaotic Nonlinear Dynamics. 
% Advances in Economics and Finance, 
% Mathematics and Statistics" 
% T.Vialar, Springer 2009.
% Copyright(c).
