/* There are a total of 0 entries in the algebraic variable array. There are a total of 2 entries in each of the rate and state variable arrays. There are a total of 1 entries in the constant variable array. */ /* * VOI is t in component main (dimensionless). * STATES[0] is x in component main (dimensionless). * STATES[1] is y in component main (dimensionless). * CONSTANTS[0] is mu in component main (dimensionless). * RATES[0] is d/dt x in component main (dimensionless). * RATES[1] is d/dt y in component main (dimensionless). */ void initConsts(double* CONSTANTS, double* RATES, double *STATES) { STATES[0] = -2; STATES[1] = 0; CONSTANTS[0] = 1; } void computeRates(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC) { RATES[0] = STATES[1]; RATES[1] = CONSTANTS[0]*(1.00000 - pow(STATES[0], 2.00000))*STATES[1] - STATES[0]; } void computeVariables(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC) { }