#include "AnT.hpp"

#define a parameters[0]
#define b parameters[1]
#define c parameters[2]
#define d parameters[3]
#define X currentState[0]
#define Y currentState[1]

bool Tinkerbell (const Array<real_t>&currentState,
		 const Array<real_t>& parameters,
		 Array<real_t>& rhs)
{
  
    rhs[0] = X*X - Y*Y + a*X + b*Y;
    rhs[1] = 2*X*Y + c*X + d*Y;

  return true;
}


#undef a
#undef b
#undef c
#undef d
#undef X
#undef Y

extern "C" 
{
    void connectSystem ()
    {
	MapProxy::systemFunction = Tinkerbell;
    }    
}


