Generated Code

The following is c_ida code generated by the CellML API from this CellML file. (Back to language selection)

The raw code is available.

/*
   There are a total of 80 entries in the algebraic variable array.
   There are a total of 25 entries in each of the rate and state variable arrays.
   There are a total of 160 entries in the constant variable array.
 */
/*
 * ALGEBRAIC[0] is sum_g_syn_e_s_1 in component synaptic_coupling (nanoS).
 * ALGEBRAIC[1] is sum_g_syn_e_s_2 in component synaptic_coupling (nanoS).
 * ALGEBRAIC[2] is sum_g_syn_e_s_3 in component synaptic_coupling (nanoS).
 * ALGEBRAIC[3] is sum_g_syn_e_s_4 in component synaptic_coupling (nanoS).
 * ALGEBRAIC[4] is sum_g_syn_e_s_5 in component synaptic_coupling (nanoS).
 * CONSTANTS[0] is g_syn_e_1_2 in component synaptic_coupling (nanoS).
 * CONSTANTS[1] is g_syn_e_1_3 in component synaptic_coupling (nanoS).
 * CONSTANTS[2] is g_syn_e_1_4 in component synaptic_coupling (nanoS).
 * CONSTANTS[3] is g_syn_e_1_5 in component synaptic_coupling (nanoS).
 * CONSTANTS[4] is g_syn_e_2_1 in component synaptic_coupling (nanoS).
 * CONSTANTS[5] is g_syn_e_2_3 in component synaptic_coupling (nanoS).
 * CONSTANTS[6] is g_syn_e_2_4 in component synaptic_coupling (nanoS).
 * CONSTANTS[7] is g_syn_e_2_5 in component synaptic_coupling (nanoS).
 * CONSTANTS[8] is g_syn_e_3_1 in component synaptic_coupling (nanoS).
 * CONSTANTS[9] is g_syn_e_3_2 in component synaptic_coupling (nanoS).
 * CONSTANTS[10] is g_syn_e_3_4 in component synaptic_coupling (nanoS).
 * CONSTANTS[11] is g_syn_e_3_5 in component synaptic_coupling (nanoS).
 * CONSTANTS[12] is g_syn_e_4_1 in component synaptic_coupling (nanoS).
 * CONSTANTS[13] is g_syn_e_4_2 in component synaptic_coupling (nanoS).
 * CONSTANTS[14] is g_syn_e_4_3 in component synaptic_coupling (nanoS).
 * CONSTANTS[15] is g_syn_e_4_5 in component synaptic_coupling (nanoS).
 * CONSTANTS[16] is g_syn_e_5_1 in component synaptic_coupling (nanoS).
 * CONSTANTS[17] is g_syn_e_5_2 in component synaptic_coupling (nanoS).
 * CONSTANTS[18] is g_syn_e_5_3 in component synaptic_coupling (nanoS).
 * CONSTANTS[19] is g_syn_e_5_4 in component synaptic_coupling (nanoS).
 * STATES[0] is s in component synaptic_input (dimensionless).
 * STATES[1] is s in component synaptic_input (dimensionless).
 * STATES[2] is s in component synaptic_input (dimensionless).
 * STATES[3] is s in component synaptic_input (dimensionless).
 * STATES[4] is s in component synaptic_input (dimensionless).
 * VOI is time in component environment (millisecond).
 * STATES[5] is V in component membrane (millivolt).
 * CONSTANTS[20] is C in component membrane (picoF).
 * CONSTANTS[21] is i_app in component membrane (picoA).
 * ALGEBRAIC[71] is i_NaP in component persistent_sodium_current (picoA).
 * ALGEBRAIC[70] is i_Na in component fast_sodium_current (picoA).
 * ALGEBRAIC[8] is i_K in component potassium_current (picoA).
 * ALGEBRAIC[14] is i_L in component leakage_current (picoA).
 * ALGEBRAIC[15] is i_tonic_e in component tonic_current (picoA).
 * ALGEBRAIC[16] is i_syn_e in component synaptic_input (picoA).
 * CONSTANTS[22] is E_Na in component fast_sodium_current (millivolt).
 * CONSTANTS[23] is g_Na in component fast_sodium_current (nanoS).
 * ALGEBRAIC[5] is m_infinity in component fast_sodium_current_m_gate (dimensionless).
 * STATES[6] is n in component fast_sodium_current_n_gate (dimensionless).
 * CONSTANTS[24] is theta_m in component fast_sodium_current_m_gate (millivolt).
 * CONSTANTS[25] is sigma_m in component fast_sodium_current_m_gate (millivolt).
 * ALGEBRAIC[6] is n_infinity in component fast_sodium_current_n_gate (dimensionless).
 * ALGEBRAIC[7] is tau_n in component fast_sodium_current_n_gate (millisecond).
 * CONSTANTS[26] is tau_n_max in component fast_sodium_current_n_gate (millisecond).
 * CONSTANTS[27] is theta_n in component fast_sodium_current_n_gate (millivolt).
 * CONSTANTS[28] is sigma_n in component fast_sodium_current_n_gate (millivolt).
 * CONSTANTS[29] is g_K in component potassium_current (nanoS).
 * CONSTANTS[30] is E_K in component potassium_current (millivolt).
 * STATES[7] is n in component potassium_current_n_gate (dimensionless).
 * ALGEBRAIC[9] is n_infinity in component potassium_current_n_gate (dimensionless).
 * ALGEBRAIC[10] is tau_n in component potassium_current_n_gate (millisecond).
 * CONSTANTS[31] is tau_n_max in component potassium_current_n_gate (millisecond).
 * CONSTANTS[32] is theta_n in component potassium_current_n_gate (millivolt).
 * CONSTANTS[33] is sigma_n in component potassium_current_n_gate (millivolt).
 * CONSTANTS[34] is g_NaP in component persistent_sodium_current (nanoS).
 * ALGEBRAIC[11] is m_infinity in component persistent_sodium_current_m_gate (dimensionless).
 * STATES[8] is h in component persistent_sodium_current_h_gate (dimensionless).
 * CONSTANTS[35] is theta_m in component persistent_sodium_current_m_gate (millivolt).
 * CONSTANTS[36] is sigma_m in component persistent_sodium_current_m_gate (millivolt).
 * ALGEBRAIC[12] is h_infinity in component persistent_sodium_current_h_gate (dimensionless).
 * ALGEBRAIC[13] is tau_h in component persistent_sodium_current_h_gate (millisecond).
 * CONSTANTS[37] is tau_h_max in component persistent_sodium_current_h_gate (millisecond).
 * CONSTANTS[38] is theta_h in component persistent_sodium_current_h_gate (millivolt).
 * CONSTANTS[39] is sigma_h in component persistent_sodium_current_h_gate (millivolt).
 * CONSTANTS[40] is g_L in component leakage_current (nanoS).
 * CONSTANTS[41] is E_L in component leakage_current (millivolt).
 * CONSTANTS[42] is E_syn_e in component tonic_current (millivolt).
 * CONSTANTS[43] is g_tonic_e in component tonic_current (nanoS).
 * ALGEBRAIC[17] is s_infinity in component synaptic_input (dimensionless).
 * CONSTANTS[44] is kr in component synaptic_input (dimensionless).
 * CONSTANTS[45] is tau_s in component synaptic_input (millisecond).
 * CONSTANTS[46] is sigma_s in component synaptic_input (millivolt).
 * CONSTANTS[47] is theta_s in component synaptic_input (millivolt).
 * VOI is time in component environment (millisecond).
 * STATES[9] is V in component membrane (millivolt).
 * CONSTANTS[48] is C in component membrane (picoF).
 * CONSTANTS[49] is i_app in component membrane (picoA).
 * ALGEBRAIC[73] is i_NaP in component persistent_sodium_current (picoA).
 * ALGEBRAIC[72] is i_Na in component fast_sodium_current (picoA).
 * ALGEBRAIC[21] is i_K in component potassium_current (picoA).
 * ALGEBRAIC[27] is i_L in component leakage_current (picoA).
 * ALGEBRAIC[28] is i_tonic_e in component tonic_current (picoA).
 * ALGEBRAIC[29] is i_syn_e in component synaptic_input (picoA).
 * CONSTANTS[50] is E_Na in component fast_sodium_current (millivolt).
 * CONSTANTS[51] is g_Na in component fast_sodium_current (nanoS).
 * ALGEBRAIC[18] is m_infinity in component fast_sodium_current_m_gate (dimensionless).
 * STATES[10] is n in component fast_sodium_current_n_gate (dimensionless).
 * CONSTANTS[52] is theta_m in component fast_sodium_current_m_gate (millivolt).
 * CONSTANTS[53] is sigma_m in component fast_sodium_current_m_gate (millivolt).
 * ALGEBRAIC[19] is n_infinity in component fast_sodium_current_n_gate (dimensionless).
 * ALGEBRAIC[20] is tau_n in component fast_sodium_current_n_gate (millisecond).
 * CONSTANTS[54] is tau_n_max in component fast_sodium_current_n_gate (millisecond).
 * CONSTANTS[55] is theta_n in component fast_sodium_current_n_gate (millivolt).
 * CONSTANTS[56] is sigma_n in component fast_sodium_current_n_gate (millivolt).
 * CONSTANTS[57] is g_K in component potassium_current (nanoS).
 * CONSTANTS[58] is E_K in component potassium_current (millivolt).
 * STATES[11] is n in component potassium_current_n_gate (dimensionless).
 * ALGEBRAIC[22] is n_infinity in component potassium_current_n_gate (dimensionless).
 * ALGEBRAIC[23] is tau_n in component potassium_current_n_gate (millisecond).
 * CONSTANTS[59] is tau_n_max in component potassium_current_n_gate (millisecond).
 * CONSTANTS[60] is theta_n in component potassium_current_n_gate (millivolt).
 * CONSTANTS[61] is sigma_n in component potassium_current_n_gate (millivolt).
 * CONSTANTS[62] is g_NaP in component persistent_sodium_current (nanoS).
 * ALGEBRAIC[24] is m_infinity in component persistent_sodium_current_m_gate (dimensionless).
 * STATES[12] is h in component persistent_sodium_current_h_gate (dimensionless).
 * CONSTANTS[63] is theta_m in component persistent_sodium_current_m_gate (millivolt).
 * CONSTANTS[64] is sigma_m in component persistent_sodium_current_m_gate (millivolt).
 * ALGEBRAIC[25] is h_infinity in component persistent_sodium_current_h_gate (dimensionless).
 * ALGEBRAIC[26] is tau_h in component persistent_sodium_current_h_gate (millisecond).
 * CONSTANTS[65] is tau_h_max in component persistent_sodium_current_h_gate (millisecond).
 * CONSTANTS[66] is theta_h in component persistent_sodium_current_h_gate (millivolt).
 * CONSTANTS[67] is sigma_h in component persistent_sodium_current_h_gate (millivolt).
 * CONSTANTS[68] is g_L in component leakage_current (nanoS).
 * CONSTANTS[69] is E_L in component leakage_current (millivolt).
 * CONSTANTS[70] is E_syn_e in component tonic_current (millivolt).
 * CONSTANTS[71] is g_tonic_e in component tonic_current (nanoS).
 * ALGEBRAIC[30] is s_infinity in component synaptic_input (dimensionless).
 * CONSTANTS[72] is kr in component synaptic_input (dimensionless).
 * CONSTANTS[73] is tau_s in component synaptic_input (millisecond).
 * CONSTANTS[74] is sigma_s in component synaptic_input (millivolt).
 * CONSTANTS[75] is theta_s in component synaptic_input (millivolt).
 * VOI is time in component environment (millisecond).
 * STATES[13] is V in component membrane (millivolt).
 * CONSTANTS[76] is C in component membrane (picoF).
 * CONSTANTS[77] is i_app in component membrane (picoA).
 * ALGEBRAIC[75] is i_NaP in component persistent_sodium_current (picoA).
 * ALGEBRAIC[74] is i_Na in component fast_sodium_current (picoA).
 * ALGEBRAIC[34] is i_K in component potassium_current (picoA).
 * ALGEBRAIC[40] is i_L in component leakage_current (picoA).
 * ALGEBRAIC[41] is i_tonic_e in component tonic_current (picoA).
 * ALGEBRAIC[42] is i_syn_e in component synaptic_input (picoA).
 * CONSTANTS[78] is E_Na in component fast_sodium_current (millivolt).
 * CONSTANTS[79] is g_Na in component fast_sodium_current (nanoS).
 * ALGEBRAIC[31] is m_infinity in component fast_sodium_current_m_gate (dimensionless).
 * STATES[14] is n in component fast_sodium_current_n_gate (dimensionless).
 * CONSTANTS[80] is theta_m in component fast_sodium_current_m_gate (millivolt).
 * CONSTANTS[81] is sigma_m in component fast_sodium_current_m_gate (millivolt).
 * ALGEBRAIC[32] is n_infinity in component fast_sodium_current_n_gate (dimensionless).
 * ALGEBRAIC[33] is tau_n in component fast_sodium_current_n_gate (millisecond).
 * CONSTANTS[82] is tau_n_max in component fast_sodium_current_n_gate (millisecond).
 * CONSTANTS[83] is theta_n in component fast_sodium_current_n_gate (millivolt).
 * CONSTANTS[84] is sigma_n in component fast_sodium_current_n_gate (millivolt).
 * CONSTANTS[85] is g_K in component potassium_current (nanoS).
 * CONSTANTS[86] is E_K in component potassium_current (millivolt).
 * STATES[15] is n in component potassium_current_n_gate (dimensionless).
 * ALGEBRAIC[35] is n_infinity in component potassium_current_n_gate (dimensionless).
 * ALGEBRAIC[36] is tau_n in component potassium_current_n_gate (millisecond).
 * CONSTANTS[87] is tau_n_max in component potassium_current_n_gate (millisecond).
 * CONSTANTS[88] is theta_n in component potassium_current_n_gate (millivolt).
 * CONSTANTS[89] is sigma_n in component potassium_current_n_gate (millivolt).
 * CONSTANTS[90] is g_NaP in component persistent_sodium_current (nanoS).
 * ALGEBRAIC[37] is m_infinity in component persistent_sodium_current_m_gate (dimensionless).
 * STATES[16] is h in component persistent_sodium_current_h_gate (dimensionless).
 * CONSTANTS[91] is theta_m in component persistent_sodium_current_m_gate (millivolt).
 * CONSTANTS[92] is sigma_m in component persistent_sodium_current_m_gate (millivolt).
 * ALGEBRAIC[38] is h_infinity in component persistent_sodium_current_h_gate (dimensionless).
 * ALGEBRAIC[39] is tau_h in component persistent_sodium_current_h_gate (millisecond).
 * CONSTANTS[93] is tau_h_max in component persistent_sodium_current_h_gate (millisecond).
 * CONSTANTS[94] is theta_h in component persistent_sodium_current_h_gate (millivolt).
 * CONSTANTS[95] is sigma_h in component persistent_sodium_current_h_gate (millivolt).
 * CONSTANTS[96] is g_L in component leakage_current (nanoS).
 * CONSTANTS[97] is E_L in component leakage_current (millivolt).
 * CONSTANTS[98] is E_syn_e in component tonic_current (millivolt).
 * CONSTANTS[99] is g_tonic_e in component tonic_current (nanoS).
 * ALGEBRAIC[43] is s_infinity in component synaptic_input (dimensionless).
 * CONSTANTS[100] is kr in component synaptic_input (dimensionless).
 * CONSTANTS[101] is tau_s in component synaptic_input (millisecond).
 * CONSTANTS[102] is sigma_s in component synaptic_input (millivolt).
 * CONSTANTS[103] is theta_s in component synaptic_input (millivolt).
 * VOI is time in component environment (millisecond).
 * STATES[17] is V in component membrane (millivolt).
 * CONSTANTS[104] is C in component membrane (picoF).
 * CONSTANTS[105] is i_app in component membrane (picoA).
 * ALGEBRAIC[77] is i_NaP in component persistent_sodium_current (picoA).
 * ALGEBRAIC[76] is i_Na in component fast_sodium_current (picoA).
 * ALGEBRAIC[47] is i_K in component potassium_current (picoA).
 * ALGEBRAIC[53] is i_L in component leakage_current (picoA).
 * ALGEBRAIC[54] is i_tonic_e in component tonic_current (picoA).
 * ALGEBRAIC[55] is i_syn_e in component synaptic_input (picoA).
 * CONSTANTS[106] is E_Na in component fast_sodium_current (millivolt).
 * CONSTANTS[107] is g_Na in component fast_sodium_current (nanoS).
 * ALGEBRAIC[44] is m_infinity in component fast_sodium_current_m_gate (dimensionless).
 * STATES[18] is n in component fast_sodium_current_n_gate (dimensionless).
 * CONSTANTS[108] is theta_m in component fast_sodium_current_m_gate (millivolt).
 * CONSTANTS[109] is sigma_m in component fast_sodium_current_m_gate (millivolt).
 * ALGEBRAIC[45] is n_infinity in component fast_sodium_current_n_gate (dimensionless).
 * ALGEBRAIC[46] is tau_n in component fast_sodium_current_n_gate (millisecond).
 * CONSTANTS[110] is tau_n_max in component fast_sodium_current_n_gate (millisecond).
 * CONSTANTS[111] is theta_n in component fast_sodium_current_n_gate (millivolt).
 * CONSTANTS[112] is sigma_n in component fast_sodium_current_n_gate (millivolt).
 * CONSTANTS[113] is g_K in component potassium_current (nanoS).
 * CONSTANTS[114] is E_K in component potassium_current (millivolt).
 * STATES[19] is n in component potassium_current_n_gate (dimensionless).
 * ALGEBRAIC[48] is n_infinity in component potassium_current_n_gate (dimensionless).
 * ALGEBRAIC[49] is tau_n in component potassium_current_n_gate (millisecond).
 * CONSTANTS[115] is tau_n_max in component potassium_current_n_gate (millisecond).
 * CONSTANTS[116] is theta_n in component potassium_current_n_gate (millivolt).
 * CONSTANTS[117] is sigma_n in component potassium_current_n_gate (millivolt).
 * CONSTANTS[118] is g_NaP in component persistent_sodium_current (nanoS).
 * ALGEBRAIC[50] is m_infinity in component persistent_sodium_current_m_gate (dimensionless).
 * STATES[20] is h in component persistent_sodium_current_h_gate (dimensionless).
 * CONSTANTS[119] is theta_m in component persistent_sodium_current_m_gate (millivolt).
 * CONSTANTS[120] is sigma_m in component persistent_sodium_current_m_gate (millivolt).
 * ALGEBRAIC[51] is h_infinity in component persistent_sodium_current_h_gate (dimensionless).
 * ALGEBRAIC[52] is tau_h in component persistent_sodium_current_h_gate (millisecond).
 * CONSTANTS[121] is tau_h_max in component persistent_sodium_current_h_gate (millisecond).
 * CONSTANTS[122] is theta_h in component persistent_sodium_current_h_gate (millivolt).
 * CONSTANTS[123] is sigma_h in component persistent_sodium_current_h_gate (millivolt).
 * CONSTANTS[124] is g_L in component leakage_current (nanoS).
 * CONSTANTS[125] is E_L in component leakage_current (millivolt).
 * CONSTANTS[126] is E_syn_e in component tonic_current (millivolt).
 * CONSTANTS[127] is g_tonic_e in component tonic_current (nanoS).
 * ALGEBRAIC[56] is s_infinity in component synaptic_input (dimensionless).
 * CONSTANTS[128] is kr in component synaptic_input (dimensionless).
 * CONSTANTS[129] is tau_s in component synaptic_input (millisecond).
 * CONSTANTS[130] is sigma_s in component synaptic_input (millivolt).
 * CONSTANTS[131] is theta_s in component synaptic_input (millivolt).
 * VOI is time in component environment (millisecond).
 * STATES[21] is V in component membrane (millivolt).
 * CONSTANTS[132] is C in component membrane (picoF).
 * CONSTANTS[133] is i_app in component membrane (picoA).
 * ALGEBRAIC[79] is i_NaP in component persistent_sodium_current (picoA).
 * ALGEBRAIC[78] is i_Na in component fast_sodium_current (picoA).
 * ALGEBRAIC[60] is i_K in component potassium_current (picoA).
 * ALGEBRAIC[66] is i_L in component leakage_current (picoA).
 * ALGEBRAIC[67] is i_tonic_e in component tonic_current (picoA).
 * ALGEBRAIC[68] is i_syn_e in component synaptic_input (picoA).
 * CONSTANTS[134] is E_Na in component fast_sodium_current (millivolt).
 * CONSTANTS[135] is g_Na in component fast_sodium_current (nanoS).
 * ALGEBRAIC[57] is m_infinity in component fast_sodium_current_m_gate (dimensionless).
 * STATES[22] is n in component fast_sodium_current_n_gate (dimensionless).
 * CONSTANTS[136] is theta_m in component fast_sodium_current_m_gate (millivolt).
 * CONSTANTS[137] is sigma_m in component fast_sodium_current_m_gate (millivolt).
 * ALGEBRAIC[58] is n_infinity in component fast_sodium_current_n_gate (dimensionless).
 * ALGEBRAIC[59] is tau_n in component fast_sodium_current_n_gate (millisecond).
 * CONSTANTS[138] is tau_n_max in component fast_sodium_current_n_gate (millisecond).
 * CONSTANTS[139] is theta_n in component fast_sodium_current_n_gate (millivolt).
 * CONSTANTS[140] is sigma_n in component fast_sodium_current_n_gate (millivolt).
 * CONSTANTS[141] is g_K in component potassium_current (nanoS).
 * CONSTANTS[142] is E_K in component potassium_current (millivolt).
 * STATES[23] is n in component potassium_current_n_gate (dimensionless).
 * ALGEBRAIC[61] is n_infinity in component potassium_current_n_gate (dimensionless).
 * ALGEBRAIC[62] is tau_n in component potassium_current_n_gate (millisecond).
 * CONSTANTS[143] is tau_n_max in component potassium_current_n_gate (millisecond).
 * CONSTANTS[144] is theta_n in component potassium_current_n_gate (millivolt).
 * CONSTANTS[145] is sigma_n in component potassium_current_n_gate (millivolt).
 * CONSTANTS[146] is g_NaP in component persistent_sodium_current (nanoS).
 * ALGEBRAIC[63] is m_infinity in component persistent_sodium_current_m_gate (dimensionless).
 * STATES[24] is h in component persistent_sodium_current_h_gate (dimensionless).
 * CONSTANTS[147] is theta_m in component persistent_sodium_current_m_gate (millivolt).
 * CONSTANTS[148] is sigma_m in component persistent_sodium_current_m_gate (millivolt).
 * ALGEBRAIC[64] is h_infinity in component persistent_sodium_current_h_gate (dimensionless).
 * ALGEBRAIC[65] is tau_h in component persistent_sodium_current_h_gate (millisecond).
 * CONSTANTS[149] is tau_h_max in component persistent_sodium_current_h_gate (millisecond).
 * CONSTANTS[150] is theta_h in component persistent_sodium_current_h_gate (millivolt).
 * CONSTANTS[151] is sigma_h in component persistent_sodium_current_h_gate (millivolt).
 * CONSTANTS[152] is g_L in component leakage_current (nanoS).
 * CONSTANTS[153] is E_L in component leakage_current (millivolt).
 * CONSTANTS[154] is E_syn_e in component tonic_current (millivolt).
 * CONSTANTS[155] is g_tonic_e in component tonic_current (nanoS).
 * ALGEBRAIC[69] is s_infinity in component synaptic_input (dimensionless).
 * CONSTANTS[156] is kr in component synaptic_input (dimensionless).
 * CONSTANTS[157] is tau_s in component synaptic_input (millisecond).
 * CONSTANTS[158] is sigma_s in component synaptic_input (millivolt).
 * CONSTANTS[159] is theta_s in component synaptic_input (millivolt).
 * RATES[5] is d/dt V in component membrane (millivolt).
 * RATES[6] is d/dt n in component fast_sodium_current_n_gate (dimensionless).
 * RATES[7] is d/dt n in component potassium_current_n_gate (dimensionless).
 * RATES[8] is d/dt h in component persistent_sodium_current_h_gate (dimensionless).
 * RATES[0] is d/dt s in component synaptic_input (dimensionless).
 * RATES[9] is d/dt V in component membrane (millivolt).
 * RATES[10] is d/dt n in component fast_sodium_current_n_gate (dimensionless).
 * RATES[11] is d/dt n in component potassium_current_n_gate (dimensionless).
 * RATES[12] is d/dt h in component persistent_sodium_current_h_gate (dimensionless).
 * RATES[1] is d/dt s in component synaptic_input (dimensionless).
 * RATES[13] is d/dt V in component membrane (millivolt).
 * RATES[14] is d/dt n in component fast_sodium_current_n_gate (dimensionless).
 * RATES[15] is d/dt n in component potassium_current_n_gate (dimensionless).
 * RATES[16] is d/dt h in component persistent_sodium_current_h_gate (dimensionless).
 * RATES[2] is d/dt s in component synaptic_input (dimensionless).
 * RATES[17] is d/dt V in component membrane (millivolt).
 * RATES[18] is d/dt n in component fast_sodium_current_n_gate (dimensionless).
 * RATES[19] is d/dt n in component potassium_current_n_gate (dimensionless).
 * RATES[20] is d/dt h in component persistent_sodium_current_h_gate (dimensionless).
 * RATES[3] is d/dt s in component synaptic_input (dimensionless).
 * RATES[21] is d/dt V in component membrane (millivolt).
 * RATES[22] is d/dt n in component fast_sodium_current_n_gate (dimensionless).
 * RATES[23] is d/dt n in component potassium_current_n_gate (dimensionless).
 * RATES[24] is d/dt h in component persistent_sodium_current_h_gate (dimensionless).
 * RATES[4] is d/dt s in component synaptic_input (dimensionless).
 * There are a total of 0 condition variables.
 */
void
initConsts(double* CONSTANTS, double* RATES, double *STATES)
{
CONSTANTS[0] = 0.10;
CONSTANTS[1] = 0.10;
CONSTANTS[2] = 0.10;
CONSTANTS[3] = 0.10;
CONSTANTS[4] = 0.10;
CONSTANTS[5] = 0.10;
CONSTANTS[6] = 0.10;
CONSTANTS[7] = 0.10;
CONSTANTS[8] = 0.10;
CONSTANTS[9] = 0.10;
CONSTANTS[10] = 0.10;
CONSTANTS[11] = 0.10;
CONSTANTS[12] = 0.10;
CONSTANTS[13] = 0.10;
CONSTANTS[14] = 0.10;
CONSTANTS[15] = 0.10;
CONSTANTS[16] = 0.10;
CONSTANTS[17] = 0.10;
CONSTANTS[18] = 0.10;
CONSTANTS[19] = 0.10;
STATES[0] = 1;
STATES[1] = 1;
STATES[2] = 1;
STATES[3] = 1;
STATES[4] = 1;
STATES[5] = -50.0;
CONSTANTS[20] = 21.0;
CONSTANTS[21] = 0.0;
CONSTANTS[22] = 50.0;
CONSTANTS[23] = 28.0;
STATES[6] = 0.01;
CONSTANTS[24] = -34.0;
CONSTANTS[25] = -5.0;
CONSTANTS[26] = 10.0;
CONSTANTS[27] = -29.0;
CONSTANTS[28] = -4.0;
CONSTANTS[29] = 11.2;
CONSTANTS[30] = -85.0;
STATES[7] = 0.01;
CONSTANTS[31] = 10.0;
CONSTANTS[32] = -29.0;
CONSTANTS[33] = -4.0;
CONSTANTS[34] = 2.8;
STATES[8] = 0.46;
CONSTANTS[35] = -40.0;
CONSTANTS[36] = -6.0;
CONSTANTS[37] = 10000.0;
CONSTANTS[38] = -48.0;
CONSTANTS[39] = 6.0;
CONSTANTS[40] = 2.8;
CONSTANTS[41] = -57.5;
CONSTANTS[42] = 0.0;
CONSTANTS[43] = 0.0;
CONSTANTS[44] = 1.0;
CONSTANTS[45] = 5.0;
CONSTANTS[46] = -5.0;
CONSTANTS[47] = -10.0;
STATES[9] = -50.0;
CONSTANTS[48] = 21.0;
CONSTANTS[49] = 0.0;
CONSTANTS[50] = 50.0;
CONSTANTS[51] = 28.0;
STATES[10] = 0.01;
CONSTANTS[52] = -34.0;
CONSTANTS[53] = -5.0;
CONSTANTS[54] = 10.0;
CONSTANTS[55] = -29.0;
CONSTANTS[56] = -4.0;
CONSTANTS[57] = 11.2;
CONSTANTS[58] = -85.0;
STATES[11] = 0.01;
CONSTANTS[59] = 10.0;
CONSTANTS[60] = -29.0;
CONSTANTS[61] = -4.0;
CONSTANTS[62] = 2.8;
STATES[12] = 0.46;
CONSTANTS[63] = -40.0;
CONSTANTS[64] = -6.0;
CONSTANTS[65] = 10000.0;
CONSTANTS[66] = -48.0;
CONSTANTS[67] = 6.0;
CONSTANTS[68] = 2.8;
CONSTANTS[69] = -57.5;
CONSTANTS[70] = 0.0;
CONSTANTS[71] = 0.0;
CONSTANTS[72] = 1.0;
CONSTANTS[73] = 5.0;
CONSTANTS[74] = -5.0;
CONSTANTS[75] = -10.0;
STATES[13] = -50.0;
CONSTANTS[76] = 21.0;
CONSTANTS[77] = 0.0;
CONSTANTS[78] = 50.0;
CONSTANTS[79] = 28.0;
STATES[14] = 0.01;
CONSTANTS[80] = -34.0;
CONSTANTS[81] = -5.0;
CONSTANTS[82] = 10.0;
CONSTANTS[83] = -29.0;
CONSTANTS[84] = -4.0;
CONSTANTS[85] = 11.2;
CONSTANTS[86] = -85.0;
STATES[15] = 0.01;
CONSTANTS[87] = 10.0;
CONSTANTS[88] = -29.0;
CONSTANTS[89] = -4.0;
CONSTANTS[90] = 2.8;
STATES[16] = 0.46;
CONSTANTS[91] = -40.0;
CONSTANTS[92] = -6.0;
CONSTANTS[93] = 10000.0;
CONSTANTS[94] = -48.0;
CONSTANTS[95] = 6.0;
CONSTANTS[96] = 2.8;
CONSTANTS[97] = -57.5;
CONSTANTS[98] = 0.0;
CONSTANTS[99] = 0.0;
CONSTANTS[100] = 1.0;
CONSTANTS[101] = 5.0;
CONSTANTS[102] = -5.0;
CONSTANTS[103] = -10.0;
STATES[17] = -50.0;
CONSTANTS[104] = 21.0;
CONSTANTS[105] = 0.0;
CONSTANTS[106] = 50.0;
CONSTANTS[107] = 28.0;
STATES[18] = 0.01;
CONSTANTS[108] = -34.0;
CONSTANTS[109] = -5.0;
CONSTANTS[110] = 10.0;
CONSTANTS[111] = -29.0;
CONSTANTS[112] = -4.0;
CONSTANTS[113] = 11.2;
CONSTANTS[114] = -85.0;
STATES[19] = 0.01;
CONSTANTS[115] = 10.0;
CONSTANTS[116] = -29.0;
CONSTANTS[117] = -4.0;
CONSTANTS[118] = 2.8;
STATES[20] = 0.46;
CONSTANTS[119] = -40.0;
CONSTANTS[120] = -6.0;
CONSTANTS[121] = 10000.0;
CONSTANTS[122] = -48.0;
CONSTANTS[123] = 6.0;
CONSTANTS[124] = 2.8;
CONSTANTS[125] = -57.5;
CONSTANTS[126] = 0.0;
CONSTANTS[127] = 0.0;
CONSTANTS[128] = 1.0;
CONSTANTS[129] = 5.0;
CONSTANTS[130] = -5.0;
CONSTANTS[131] = -10.0;
STATES[21] = -50.0;
CONSTANTS[132] = 21.0;
CONSTANTS[133] = 0.0;
CONSTANTS[134] = 50.0;
CONSTANTS[135] = 28.0;
STATES[22] = 0.01;
CONSTANTS[136] = -34.0;
CONSTANTS[137] = -5.0;
CONSTANTS[138] = 10.0;
CONSTANTS[139] = -29.0;
CONSTANTS[140] = -4.0;
CONSTANTS[141] = 11.2;
CONSTANTS[142] = -85.0;
STATES[23] = 0.01;
CONSTANTS[143] = 10.0;
CONSTANTS[144] = -29.0;
CONSTANTS[145] = -4.0;
CONSTANTS[146] = 2.8;
STATES[24] = 0.46;
CONSTANTS[147] = -40.0;
CONSTANTS[148] = -6.0;
CONSTANTS[149] = 10000.0;
CONSTANTS[150] = -48.0;
CONSTANTS[151] = 6.0;
CONSTANTS[152] = 2.8;
CONSTANTS[153] = -57.5;
CONSTANTS[154] = 0.0;
CONSTANTS[155] = 0.0;
CONSTANTS[156] = 1.0;
CONSTANTS[157] = 5.0;
CONSTANTS[158] = -5.0;
CONSTANTS[159] = -10.0;
RATES[5] = 0.1001;
RATES[6] = 0.1001;
RATES[7] = 0.1001;
RATES[8] = 0.1001;
RATES[0] = 0.1001;
RATES[9] = 0.1001;
RATES[10] = 0.1001;
RATES[11] = 0.1001;
RATES[12] = 0.1001;
RATES[1] = 0.1001;
RATES[13] = 0.1001;
RATES[14] = 0.1001;
RATES[15] = 0.1001;
RATES[16] = 0.1001;
RATES[2] = 0.1001;
RATES[17] = 0.1001;
RATES[18] = 0.1001;
RATES[19] = 0.1001;
RATES[20] = 0.1001;
RATES[3] = 0.1001;
RATES[21] = 0.1001;
RATES[22] = 0.1001;
RATES[23] = 0.1001;
RATES[24] = 0.1001;
RATES[4] = 0.1001;
}
void
computeResiduals(double VOI, double* CONSTANTS, double* RATES, double* OLDRATES, double* STATES,
                 double* OLDSTATES, double* ALGEBRAIC, double* CONDVARS)
{
resid[0] = RATES[5] - (- (ALGEBRAIC[71]+ALGEBRAIC[70]+ALGEBRAIC[8]+ALGEBRAIC[14]+ALGEBRAIC[15]+ALGEBRAIC[16])+CONSTANTS[21])/CONSTANTS[20];
resid[1] = RATES[6] - (ALGEBRAIC[6] - STATES[6])/ALGEBRAIC[7];
resid[2] = RATES[7] - (ALGEBRAIC[9] - STATES[7])/ALGEBRAIC[10];
resid[3] = RATES[8] - (ALGEBRAIC[12] - STATES[8])/ALGEBRAIC[13];
resid[4] = RATES[0] - ( (1.00000 - STATES[0])*ALGEBRAIC[17] - - ( CONSTANTS[44]*STATES[0]))/CONSTANTS[45];
resid[5] = RATES[9] - (- (ALGEBRAIC[73]+ALGEBRAIC[72]+ALGEBRAIC[21]+ALGEBRAIC[27]+ALGEBRAIC[28]+ALGEBRAIC[29])+CONSTANTS[49])/CONSTANTS[48];
resid[6] = RATES[10] - (ALGEBRAIC[19] - STATES[10])/ALGEBRAIC[20];
resid[7] = RATES[11] - (ALGEBRAIC[22] - STATES[11])/ALGEBRAIC[23];
resid[8] = RATES[12] - (ALGEBRAIC[25] - STATES[12])/ALGEBRAIC[26];
resid[9] = RATES[1] - ( (1.00000 - STATES[1])*ALGEBRAIC[30] - - ( CONSTANTS[72]*STATES[1]))/CONSTANTS[73];
resid[10] = RATES[13] - (- (ALGEBRAIC[75]+ALGEBRAIC[74]+ALGEBRAIC[34]+ALGEBRAIC[40]+ALGEBRAIC[41]+ALGEBRAIC[42])+CONSTANTS[77])/CONSTANTS[76];
resid[11] = RATES[14] - (ALGEBRAIC[32] - STATES[14])/ALGEBRAIC[33];
resid[12] = RATES[15] - (ALGEBRAIC[35] - STATES[15])/ALGEBRAIC[36];
resid[13] = RATES[16] - (ALGEBRAIC[38] - STATES[16])/ALGEBRAIC[39];
resid[14] = RATES[2] - ( (1.00000 - STATES[2])*ALGEBRAIC[43] - - ( CONSTANTS[100]*STATES[2]))/CONSTANTS[101];
resid[15] = RATES[17] - (- (ALGEBRAIC[77]+ALGEBRAIC[76]+ALGEBRAIC[47]+ALGEBRAIC[53]+ALGEBRAIC[54]+ALGEBRAIC[55])+CONSTANTS[105])/CONSTANTS[104];
resid[16] = RATES[18] - (ALGEBRAIC[45] - STATES[18])/ALGEBRAIC[46];
resid[17] = RATES[19] - (ALGEBRAIC[48] - STATES[19])/ALGEBRAIC[49];
resid[18] = RATES[20] - (ALGEBRAIC[51] - STATES[20])/ALGEBRAIC[52];
resid[19] = RATES[3] - ( (1.00000 - STATES[3])*ALGEBRAIC[56] - - ( CONSTANTS[128]*STATES[3]))/CONSTANTS[129];
resid[20] = RATES[21] - (- (ALGEBRAIC[79]+ALGEBRAIC[78]+ALGEBRAIC[60]+ALGEBRAIC[66]+ALGEBRAIC[67]+ALGEBRAIC[68])+CONSTANTS[133])/CONSTANTS[132];
resid[21] = RATES[22] - (ALGEBRAIC[58] - STATES[22])/ALGEBRAIC[59];
resid[22] = RATES[23] - (ALGEBRAIC[61] - STATES[23])/ALGEBRAIC[62];
resid[23] = RATES[24] - (ALGEBRAIC[64] - STATES[24])/ALGEBRAIC[65];
resid[24] = RATES[4] - ( (1.00000 - STATES[4])*ALGEBRAIC[69] - - ( CONSTANTS[156]*STATES[4]))/CONSTANTS[157];
}
void
computeVariables(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC)
{
}
void
computeEssentialVariables(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC)
{
ALGEBRAIC[6] = 1.00000/(1.00000+exp((STATES[5] - CONSTANTS[27])/CONSTANTS[28]));
ALGEBRAIC[7] = CONSTANTS[26]/cosh((STATES[5] - CONSTANTS[27])/( 2.00000*CONSTANTS[28]));
ALGEBRAIC[8] =  CONSTANTS[29]*pow(STATES[7], 4.00000)*(STATES[5] - CONSTANTS[30]);
ALGEBRAIC[9] = 1.00000/(1.00000+exp((STATES[5] - CONSTANTS[32])/CONSTANTS[33]));
ALGEBRAIC[10] = CONSTANTS[31]/cosh((STATES[5] - CONSTANTS[32])/( 2.00000*CONSTANTS[33]));
ALGEBRAIC[12] = 1.00000/(1.00000+exp((STATES[5] - CONSTANTS[38])/CONSTANTS[39]));
ALGEBRAIC[13] = CONSTANTS[37]/cosh((STATES[5] - CONSTANTS[38])/( 2.00000*CONSTANTS[39]));
ALGEBRAIC[14] =  CONSTANTS[40]*(STATES[5] - CONSTANTS[41]);
ALGEBRAIC[15] =  CONSTANTS[43]*(STATES[5] - CONSTANTS[42]);
ALGEBRAIC[0] =  CONSTANTS[0]*STATES[0]+ CONSTANTS[1]*STATES[0]+ CONSTANTS[2]*STATES[0]+ CONSTANTS[3]*STATES[0];
ALGEBRAIC[16] =  ALGEBRAIC[0]*(STATES[5] - CONSTANTS[42]);
ALGEBRAIC[17] = 1.00000/(1.00000+exp((STATES[5] - CONSTANTS[47])/CONSTANTS[46]));
ALGEBRAIC[19] = 1.00000/(1.00000+exp((STATES[9] - CONSTANTS[55])/CONSTANTS[56]));
ALGEBRAIC[20] = CONSTANTS[54]/cosh((STATES[9] - CONSTANTS[55])/( 2.00000*CONSTANTS[56]));
ALGEBRAIC[21] =  CONSTANTS[57]*pow(STATES[11], 4.00000)*(STATES[9] - CONSTANTS[58]);
ALGEBRAIC[22] = 1.00000/(1.00000+exp((STATES[9] - CONSTANTS[60])/CONSTANTS[61]));
ALGEBRAIC[23] = CONSTANTS[59]/cosh((STATES[9] - CONSTANTS[60])/( 2.00000*CONSTANTS[61]));
ALGEBRAIC[25] = 1.00000/(1.00000+exp((STATES[9] - CONSTANTS[66])/CONSTANTS[67]));
ALGEBRAIC[26] = CONSTANTS[65]/cosh((STATES[9] - CONSTANTS[66])/( 2.00000*CONSTANTS[67]));
ALGEBRAIC[27] =  CONSTANTS[68]*(STATES[9] - CONSTANTS[69]);
ALGEBRAIC[28] =  CONSTANTS[71]*(STATES[9] - CONSTANTS[70]);
ALGEBRAIC[1] =  CONSTANTS[4]*STATES[1]+ CONSTANTS[5]*STATES[1]+ CONSTANTS[6]*STATES[1]+ CONSTANTS[7]*STATES[1];
ALGEBRAIC[29] =  ALGEBRAIC[1]*(STATES[9] - CONSTANTS[70]);
ALGEBRAIC[30] = 1.00000/(1.00000+exp((STATES[9] - CONSTANTS[75])/CONSTANTS[74]));
ALGEBRAIC[32] = 1.00000/(1.00000+exp((STATES[13] - CONSTANTS[83])/CONSTANTS[84]));
ALGEBRAIC[33] = CONSTANTS[82]/cosh((STATES[13] - CONSTANTS[83])/( 2.00000*CONSTANTS[84]));
ALGEBRAIC[34] =  CONSTANTS[85]*pow(STATES[15], 4.00000)*(STATES[13] - CONSTANTS[86]);
ALGEBRAIC[35] = 1.00000/(1.00000+exp((STATES[13] - CONSTANTS[88])/CONSTANTS[89]));
ALGEBRAIC[36] = CONSTANTS[87]/cosh((STATES[13] - CONSTANTS[88])/( 2.00000*CONSTANTS[89]));
ALGEBRAIC[38] = 1.00000/(1.00000+exp((STATES[13] - CONSTANTS[94])/CONSTANTS[95]));
ALGEBRAIC[39] = CONSTANTS[93]/cosh((STATES[13] - CONSTANTS[94])/( 2.00000*CONSTANTS[95]));
ALGEBRAIC[40] =  CONSTANTS[96]*(STATES[13] - CONSTANTS[97]);
ALGEBRAIC[41] =  CONSTANTS[99]*(STATES[13] - CONSTANTS[98]);
ALGEBRAIC[2] =  CONSTANTS[8]*STATES[2]+ CONSTANTS[9]*STATES[2]+ CONSTANTS[10]*STATES[2]+ CONSTANTS[11]*STATES[2];
ALGEBRAIC[42] =  ALGEBRAIC[2]*(STATES[13] - CONSTANTS[98]);
ALGEBRAIC[43] = 1.00000/(1.00000+exp((STATES[13] - CONSTANTS[103])/CONSTANTS[102]));
ALGEBRAIC[45] = 1.00000/(1.00000+exp((STATES[17] - CONSTANTS[111])/CONSTANTS[112]));
ALGEBRAIC[46] = CONSTANTS[110]/cosh((STATES[17] - CONSTANTS[111])/( 2.00000*CONSTANTS[112]));
ALGEBRAIC[47] =  CONSTANTS[113]*pow(STATES[19], 4.00000)*(STATES[17] - CONSTANTS[114]);
ALGEBRAIC[48] = 1.00000/(1.00000+exp((STATES[17] - CONSTANTS[116])/CONSTANTS[117]));
ALGEBRAIC[49] = CONSTANTS[115]/cosh((STATES[17] - CONSTANTS[116])/( 2.00000*CONSTANTS[117]));
ALGEBRAIC[51] = 1.00000/(1.00000+exp((STATES[17] - CONSTANTS[122])/CONSTANTS[123]));
ALGEBRAIC[52] = CONSTANTS[121]/cosh((STATES[17] - CONSTANTS[122])/( 2.00000*CONSTANTS[123]));
ALGEBRAIC[53] =  CONSTANTS[124]*(STATES[17] - CONSTANTS[125]);
ALGEBRAIC[54] =  CONSTANTS[127]*(STATES[17] - CONSTANTS[126]);
ALGEBRAIC[3] =  CONSTANTS[12]*STATES[3]+ CONSTANTS[13]*STATES[3]+ CONSTANTS[14]*STATES[3]+ CONSTANTS[15]*STATES[3];
ALGEBRAIC[55] =  ALGEBRAIC[3]*(STATES[17] - CONSTANTS[126]);
ALGEBRAIC[56] = 1.00000/(1.00000+exp((STATES[17] - CONSTANTS[131])/CONSTANTS[130]));
ALGEBRAIC[58] = 1.00000/(1.00000+exp((STATES[21] - CONSTANTS[139])/CONSTANTS[140]));
ALGEBRAIC[59] = CONSTANTS[138]/cosh((STATES[21] - CONSTANTS[139])/( 2.00000*CONSTANTS[140]));
ALGEBRAIC[60] =  CONSTANTS[141]*pow(STATES[23], 4.00000)*(STATES[21] - CONSTANTS[142]);
ALGEBRAIC[61] = 1.00000/(1.00000+exp((STATES[21] - CONSTANTS[144])/CONSTANTS[145]));
ALGEBRAIC[62] = CONSTANTS[143]/cosh((STATES[21] - CONSTANTS[144])/( 2.00000*CONSTANTS[145]));
ALGEBRAIC[64] = 1.00000/(1.00000+exp((STATES[21] - CONSTANTS[150])/CONSTANTS[151]));
ALGEBRAIC[65] = CONSTANTS[149]/cosh((STATES[21] - CONSTANTS[150])/( 2.00000*CONSTANTS[151]));
ALGEBRAIC[66] =  CONSTANTS[152]*(STATES[21] - CONSTANTS[153]);
ALGEBRAIC[67] =  CONSTANTS[155]*(STATES[21] - CONSTANTS[154]);
ALGEBRAIC[4] =  CONSTANTS[16]*STATES[4]+ CONSTANTS[17]*STATES[4]+ CONSTANTS[18]*STATES[4]+ CONSTANTS[19]*STATES[4];
ALGEBRAIC[68] =  ALGEBRAIC[4]*(STATES[21] - CONSTANTS[154]);
ALGEBRAIC[69] = 1.00000/(1.00000+exp((STATES[21] - CONSTANTS[159])/CONSTANTS[158]));
ALGEBRAIC[5] = 1.00000/(1.00000+exp((STATES[5] - CONSTANTS[24])/CONSTANTS[25]));
ALGEBRAIC[70] =  CONSTANTS[23]*pow(ALGEBRAIC[5], 3.00000)*(1.00000 - STATES[6])*(STATES[5] - CONSTANTS[22]);
ALGEBRAIC[11] = 1.00000/(1.00000+exp((STATES[5] - CONSTANTS[35])/CONSTANTS[36]));
ALGEBRAIC[71] =  CONSTANTS[34]*ALGEBRAIC[11]*STATES[8]*(STATES[5] - CONSTANTS[22]);
ALGEBRAIC[18] = 1.00000/(1.00000+exp((STATES[9] - CONSTANTS[52])/CONSTANTS[53]));
ALGEBRAIC[72] =  CONSTANTS[51]*pow(ALGEBRAIC[18], 3.00000)*(1.00000 - STATES[10])*(STATES[9] - CONSTANTS[50]);
ALGEBRAIC[24] = 1.00000/(1.00000+exp((STATES[9] - CONSTANTS[63])/CONSTANTS[64]));
ALGEBRAIC[73] =  CONSTANTS[62]*ALGEBRAIC[24]*STATES[12]*(STATES[9] - CONSTANTS[50]);
ALGEBRAIC[31] = 1.00000/(1.00000+exp((STATES[13] - CONSTANTS[80])/CONSTANTS[81]));
ALGEBRAIC[74] =  CONSTANTS[79]*pow(ALGEBRAIC[31], 3.00000)*(1.00000 - STATES[14])*(STATES[13] - CONSTANTS[78]);
ALGEBRAIC[37] = 1.00000/(1.00000+exp((STATES[13] - CONSTANTS[91])/CONSTANTS[92]));
ALGEBRAIC[75] =  CONSTANTS[90]*ALGEBRAIC[37]*STATES[16]*(STATES[13] - CONSTANTS[78]);
ALGEBRAIC[44] = 1.00000/(1.00000+exp((STATES[17] - CONSTANTS[108])/CONSTANTS[109]));
ALGEBRAIC[76] =  CONSTANTS[107]*pow(ALGEBRAIC[44], 3.00000)*(1.00000 - STATES[18])*(STATES[17] - CONSTANTS[106]);
ALGEBRAIC[50] = 1.00000/(1.00000+exp((STATES[17] - CONSTANTS[119])/CONSTANTS[120]));
ALGEBRAIC[77] =  CONSTANTS[118]*ALGEBRAIC[50]*STATES[20]*(STATES[17] - CONSTANTS[106]);
ALGEBRAIC[57] = 1.00000/(1.00000+exp((STATES[21] - CONSTANTS[136])/CONSTANTS[137]));
ALGEBRAIC[78] =  CONSTANTS[135]*pow(ALGEBRAIC[57], 3.00000)*(1.00000 - STATES[22])*(STATES[21] - CONSTANTS[134]);
ALGEBRAIC[63] = 1.00000/(1.00000+exp((STATES[21] - CONSTANTS[147])/CONSTANTS[148]));
ALGEBRAIC[79] =  CONSTANTS[146]*ALGEBRAIC[63]*STATES[24]*(STATES[21] - CONSTANTS[134]);
}
void
getStateInformation(double* SI)
{
SI[0] = 1.0;
SI[1] = 1.0;
SI[2] = 1.0;
SI[3] = 1.0;
SI[4] = 1.0;
SI[5] = 1.0;
SI[6] = 1.0;
SI[7] = 1.0;
SI[8] = 1.0;
SI[9] = 1.0;
SI[10] = 1.0;
SI[11] = 1.0;
SI[12] = 1.0;
SI[13] = 1.0;
SI[14] = 1.0;
SI[15] = 1.0;
SI[16] = 1.0;
SI[17] = 1.0;
SI[18] = 1.0;
SI[19] = 1.0;
SI[20] = 1.0;
SI[21] = 1.0;
SI[22] = 1.0;
SI[23] = 1.0;
SI[24] = 1.0;
}
void
computeRoots(double VOI, double* CONSTANTS, double* RATES, double* OLDRATES, double* STATES,
             double* OLDSTATES, double* ALGEBRAIC, double* CONDVARS)
{
}