Generated Code

The following is c 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[5] is sum_g_syn_e_s_2 in component synaptic_coupling (nanoS).
 * ALGEBRAIC[10] is sum_g_syn_e_s_3 in component synaptic_coupling (nanoS).
 * ALGEBRAIC[15] is sum_g_syn_e_s_4 in component synaptic_coupling (nanoS).
 * ALGEBRAIC[20] 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[60] is i_NaP in component persistent_sodium_current (picoA).
 * ALGEBRAIC[45] is i_Na in component fast_sodium_current (picoA).
 * ALGEBRAIC[50] is i_K in component potassium_current (picoA).
 * ALGEBRAIC[65] is i_L in component leakage_current (picoA).
 * ALGEBRAIC[70] is i_tonic_e in component tonic_current (picoA).
 * ALGEBRAIC[75] 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[25] 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[1] is n_infinity in component fast_sodium_current_n_gate (dimensionless).
 * ALGEBRAIC[26] 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[2] is n_infinity in component potassium_current_n_gate (dimensionless).
 * ALGEBRAIC[27] 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[55] 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[3] is h_infinity in component persistent_sodium_current_h_gate (dimensionless).
 * ALGEBRAIC[28] 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[4] 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[61] is i_NaP in component persistent_sodium_current (picoA).
 * ALGEBRAIC[46] is i_Na in component fast_sodium_current (picoA).
 * ALGEBRAIC[51] is i_K in component potassium_current (picoA).
 * ALGEBRAIC[66] is i_L in component leakage_current (picoA).
 * ALGEBRAIC[71] is i_tonic_e in component tonic_current (picoA).
 * ALGEBRAIC[76] 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[29] 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[6] is n_infinity in component fast_sodium_current_n_gate (dimensionless).
 * ALGEBRAIC[30] 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[7] is n_infinity in component potassium_current_n_gate (dimensionless).
 * ALGEBRAIC[31] 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[56] 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[8] is h_infinity in component persistent_sodium_current_h_gate (dimensionless).
 * ALGEBRAIC[32] 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[9] 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[62] is i_NaP in component persistent_sodium_current (picoA).
 * ALGEBRAIC[47] is i_Na in component fast_sodium_current (picoA).
 * ALGEBRAIC[52] is i_K in component potassium_current (picoA).
 * ALGEBRAIC[67] is i_L in component leakage_current (picoA).
 * ALGEBRAIC[72] is i_tonic_e in component tonic_current (picoA).
 * ALGEBRAIC[77] 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[33] 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[11] is n_infinity in component fast_sodium_current_n_gate (dimensionless).
 * ALGEBRAIC[34] 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[12] is n_infinity in component potassium_current_n_gate (dimensionless).
 * ALGEBRAIC[35] 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[57] 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[13] is h_infinity in component persistent_sodium_current_h_gate (dimensionless).
 * ALGEBRAIC[36] 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[14] 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[63] is i_NaP in component persistent_sodium_current (picoA).
 * ALGEBRAIC[48] is i_Na in component fast_sodium_current (picoA).
 * ALGEBRAIC[53] is i_K in component potassium_current (picoA).
 * ALGEBRAIC[68] is i_L in component leakage_current (picoA).
 * ALGEBRAIC[73] is i_tonic_e in component tonic_current (picoA).
 * ALGEBRAIC[78] 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[37] 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[16] is n_infinity in component fast_sodium_current_n_gate (dimensionless).
 * ALGEBRAIC[38] 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[17] is n_infinity in component potassium_current_n_gate (dimensionless).
 * ALGEBRAIC[39] 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[58] 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[18] is h_infinity in component persistent_sodium_current_h_gate (dimensionless).
 * ALGEBRAIC[40] 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[19] 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[64] is i_NaP in component persistent_sodium_current (picoA).
 * ALGEBRAIC[49] is i_Na in component fast_sodium_current (picoA).
 * ALGEBRAIC[54] is i_K in component potassium_current (picoA).
 * ALGEBRAIC[69] is i_L in component leakage_current (picoA).
 * ALGEBRAIC[74] is i_tonic_e in component tonic_current (picoA).
 * ALGEBRAIC[79] 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[41] 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[21] is n_infinity in component fast_sodium_current_n_gate (dimensionless).
 * ALGEBRAIC[42] 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[22] is n_infinity in component potassium_current_n_gate (dimensionless).
 * ALGEBRAIC[43] 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[59] 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[23] is h_infinity in component persistent_sodium_current_h_gate (dimensionless).
 * ALGEBRAIC[44] 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[24] 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).
 */
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;
}
void
computeRates(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC)
{
ALGEBRAIC[4] = 1.00000/(1.00000+exp((STATES[5] - CONSTANTS[47])/CONSTANTS[46]));
RATES[0] = ( (1.00000 - STATES[0])*ALGEBRAIC[4] - - ( CONSTANTS[44]*STATES[0]))/CONSTANTS[45];
ALGEBRAIC[9] = 1.00000/(1.00000+exp((STATES[9] - CONSTANTS[75])/CONSTANTS[74]));
RATES[1] = ( (1.00000 - STATES[1])*ALGEBRAIC[9] - - ( CONSTANTS[72]*STATES[1]))/CONSTANTS[73];
ALGEBRAIC[14] = 1.00000/(1.00000+exp((STATES[13] - CONSTANTS[103])/CONSTANTS[102]));
RATES[2] = ( (1.00000 - STATES[2])*ALGEBRAIC[14] - - ( CONSTANTS[100]*STATES[2]))/CONSTANTS[101];
ALGEBRAIC[19] = 1.00000/(1.00000+exp((STATES[17] - CONSTANTS[131])/CONSTANTS[130]));
RATES[3] = ( (1.00000 - STATES[3])*ALGEBRAIC[19] - - ( CONSTANTS[128]*STATES[3]))/CONSTANTS[129];
ALGEBRAIC[24] = 1.00000/(1.00000+exp((STATES[21] - CONSTANTS[159])/CONSTANTS[158]));
RATES[4] = ( (1.00000 - STATES[4])*ALGEBRAIC[24] - - ( CONSTANTS[156]*STATES[4]))/CONSTANTS[157];
ALGEBRAIC[1] = 1.00000/(1.00000+exp((STATES[5] - CONSTANTS[27])/CONSTANTS[28]));
ALGEBRAIC[26] = CONSTANTS[26]/cosh((STATES[5] - CONSTANTS[27])/( 2.00000*CONSTANTS[28]));
RATES[6] = (ALGEBRAIC[1] - STATES[6])/ALGEBRAIC[26];
ALGEBRAIC[2] = 1.00000/(1.00000+exp((STATES[5] - CONSTANTS[32])/CONSTANTS[33]));
ALGEBRAIC[27] = CONSTANTS[31]/cosh((STATES[5] - CONSTANTS[32])/( 2.00000*CONSTANTS[33]));
RATES[7] = (ALGEBRAIC[2] - STATES[7])/ALGEBRAIC[27];
ALGEBRAIC[3] = 1.00000/(1.00000+exp((STATES[5] - CONSTANTS[38])/CONSTANTS[39]));
ALGEBRAIC[28] = CONSTANTS[37]/cosh((STATES[5] - CONSTANTS[38])/( 2.00000*CONSTANTS[39]));
RATES[8] = (ALGEBRAIC[3] - STATES[8])/ALGEBRAIC[28];
ALGEBRAIC[6] = 1.00000/(1.00000+exp((STATES[9] - CONSTANTS[55])/CONSTANTS[56]));
ALGEBRAIC[30] = CONSTANTS[54]/cosh((STATES[9] - CONSTANTS[55])/( 2.00000*CONSTANTS[56]));
RATES[10] = (ALGEBRAIC[6] - STATES[10])/ALGEBRAIC[30];
ALGEBRAIC[7] = 1.00000/(1.00000+exp((STATES[9] - CONSTANTS[60])/CONSTANTS[61]));
ALGEBRAIC[31] = CONSTANTS[59]/cosh((STATES[9] - CONSTANTS[60])/( 2.00000*CONSTANTS[61]));
RATES[11] = (ALGEBRAIC[7] - STATES[11])/ALGEBRAIC[31];
ALGEBRAIC[8] = 1.00000/(1.00000+exp((STATES[9] - CONSTANTS[66])/CONSTANTS[67]));
ALGEBRAIC[32] = CONSTANTS[65]/cosh((STATES[9] - CONSTANTS[66])/( 2.00000*CONSTANTS[67]));
RATES[12] = (ALGEBRAIC[8] - STATES[12])/ALGEBRAIC[32];
ALGEBRAIC[11] = 1.00000/(1.00000+exp((STATES[13] - CONSTANTS[83])/CONSTANTS[84]));
ALGEBRAIC[34] = CONSTANTS[82]/cosh((STATES[13] - CONSTANTS[83])/( 2.00000*CONSTANTS[84]));
RATES[14] = (ALGEBRAIC[11] - STATES[14])/ALGEBRAIC[34];
ALGEBRAIC[12] = 1.00000/(1.00000+exp((STATES[13] - CONSTANTS[88])/CONSTANTS[89]));
ALGEBRAIC[35] = CONSTANTS[87]/cosh((STATES[13] - CONSTANTS[88])/( 2.00000*CONSTANTS[89]));
RATES[15] = (ALGEBRAIC[12] - STATES[15])/ALGEBRAIC[35];
ALGEBRAIC[13] = 1.00000/(1.00000+exp((STATES[13] - CONSTANTS[94])/CONSTANTS[95]));
ALGEBRAIC[36] = CONSTANTS[93]/cosh((STATES[13] - CONSTANTS[94])/( 2.00000*CONSTANTS[95]));
RATES[16] = (ALGEBRAIC[13] - STATES[16])/ALGEBRAIC[36];
ALGEBRAIC[16] = 1.00000/(1.00000+exp((STATES[17] - CONSTANTS[111])/CONSTANTS[112]));
ALGEBRAIC[38] = CONSTANTS[110]/cosh((STATES[17] - CONSTANTS[111])/( 2.00000*CONSTANTS[112]));
RATES[18] = (ALGEBRAIC[16] - STATES[18])/ALGEBRAIC[38];
ALGEBRAIC[17] = 1.00000/(1.00000+exp((STATES[17] - CONSTANTS[116])/CONSTANTS[117]));
ALGEBRAIC[39] = CONSTANTS[115]/cosh((STATES[17] - CONSTANTS[116])/( 2.00000*CONSTANTS[117]));
RATES[19] = (ALGEBRAIC[17] - STATES[19])/ALGEBRAIC[39];
ALGEBRAIC[18] = 1.00000/(1.00000+exp((STATES[17] - CONSTANTS[122])/CONSTANTS[123]));
ALGEBRAIC[40] = CONSTANTS[121]/cosh((STATES[17] - CONSTANTS[122])/( 2.00000*CONSTANTS[123]));
RATES[20] = (ALGEBRAIC[18] - STATES[20])/ALGEBRAIC[40];
ALGEBRAIC[21] = 1.00000/(1.00000+exp((STATES[21] - CONSTANTS[139])/CONSTANTS[140]));
ALGEBRAIC[42] = CONSTANTS[138]/cosh((STATES[21] - CONSTANTS[139])/( 2.00000*CONSTANTS[140]));
RATES[22] = (ALGEBRAIC[21] - STATES[22])/ALGEBRAIC[42];
ALGEBRAIC[22] = 1.00000/(1.00000+exp((STATES[21] - CONSTANTS[144])/CONSTANTS[145]));
ALGEBRAIC[43] = CONSTANTS[143]/cosh((STATES[21] - CONSTANTS[144])/( 2.00000*CONSTANTS[145]));
RATES[23] = (ALGEBRAIC[22] - STATES[23])/ALGEBRAIC[43];
ALGEBRAIC[23] = 1.00000/(1.00000+exp((STATES[21] - CONSTANTS[150])/CONSTANTS[151]));
ALGEBRAIC[44] = CONSTANTS[149]/cosh((STATES[21] - CONSTANTS[150])/( 2.00000*CONSTANTS[151]));
RATES[24] = (ALGEBRAIC[23] - STATES[24])/ALGEBRAIC[44];
ALGEBRAIC[55] = 1.00000/(1.00000+exp((STATES[5] - CONSTANTS[35])/CONSTANTS[36]));
ALGEBRAIC[60] =  CONSTANTS[34]*ALGEBRAIC[55]*STATES[8]*(STATES[5] - CONSTANTS[22]);
ALGEBRAIC[25] = 1.00000/(1.00000+exp((STATES[5] - CONSTANTS[24])/CONSTANTS[25]));
ALGEBRAIC[45] =  CONSTANTS[23]*pow(ALGEBRAIC[25], 3.00000)*(1.00000 - STATES[6])*(STATES[5] - CONSTANTS[22]);
ALGEBRAIC[50] =  CONSTANTS[29]*pow(STATES[7], 4.00000)*(STATES[5] - CONSTANTS[30]);
ALGEBRAIC[65] =  CONSTANTS[40]*(STATES[5] - CONSTANTS[41]);
ALGEBRAIC[70] =  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[75] =  ALGEBRAIC[0]*(STATES[5] - CONSTANTS[42]);
RATES[5] = (- (ALGEBRAIC[60]+ALGEBRAIC[45]+ALGEBRAIC[50]+ALGEBRAIC[65]+ALGEBRAIC[70]+ALGEBRAIC[75])+CONSTANTS[21])/CONSTANTS[20];
ALGEBRAIC[56] = 1.00000/(1.00000+exp((STATES[9] - CONSTANTS[63])/CONSTANTS[64]));
ALGEBRAIC[61] =  CONSTANTS[62]*ALGEBRAIC[56]*STATES[12]*(STATES[9] - CONSTANTS[50]);
ALGEBRAIC[29] = 1.00000/(1.00000+exp((STATES[9] - CONSTANTS[52])/CONSTANTS[53]));
ALGEBRAIC[46] =  CONSTANTS[51]*pow(ALGEBRAIC[29], 3.00000)*(1.00000 - STATES[10])*(STATES[9] - CONSTANTS[50]);
ALGEBRAIC[51] =  CONSTANTS[57]*pow(STATES[11], 4.00000)*(STATES[9] - CONSTANTS[58]);
ALGEBRAIC[66] =  CONSTANTS[68]*(STATES[9] - CONSTANTS[69]);
ALGEBRAIC[71] =  CONSTANTS[71]*(STATES[9] - CONSTANTS[70]);
ALGEBRAIC[5] =  CONSTANTS[4]*STATES[1]+ CONSTANTS[5]*STATES[1]+ CONSTANTS[6]*STATES[1]+ CONSTANTS[7]*STATES[1];
ALGEBRAIC[76] =  ALGEBRAIC[5]*(STATES[9] - CONSTANTS[70]);
RATES[9] = (- (ALGEBRAIC[61]+ALGEBRAIC[46]+ALGEBRAIC[51]+ALGEBRAIC[66]+ALGEBRAIC[71]+ALGEBRAIC[76])+CONSTANTS[49])/CONSTANTS[48];
ALGEBRAIC[57] = 1.00000/(1.00000+exp((STATES[13] - CONSTANTS[91])/CONSTANTS[92]));
ALGEBRAIC[62] =  CONSTANTS[90]*ALGEBRAIC[57]*STATES[16]*(STATES[13] - CONSTANTS[78]);
ALGEBRAIC[33] = 1.00000/(1.00000+exp((STATES[13] - CONSTANTS[80])/CONSTANTS[81]));
ALGEBRAIC[47] =  CONSTANTS[79]*pow(ALGEBRAIC[33], 3.00000)*(1.00000 - STATES[14])*(STATES[13] - CONSTANTS[78]);
ALGEBRAIC[52] =  CONSTANTS[85]*pow(STATES[15], 4.00000)*(STATES[13] - CONSTANTS[86]);
ALGEBRAIC[67] =  CONSTANTS[96]*(STATES[13] - CONSTANTS[97]);
ALGEBRAIC[72] =  CONSTANTS[99]*(STATES[13] - CONSTANTS[98]);
ALGEBRAIC[10] =  CONSTANTS[8]*STATES[2]+ CONSTANTS[9]*STATES[2]+ CONSTANTS[10]*STATES[2]+ CONSTANTS[11]*STATES[2];
ALGEBRAIC[77] =  ALGEBRAIC[10]*(STATES[13] - CONSTANTS[98]);
RATES[13] = (- (ALGEBRAIC[62]+ALGEBRAIC[47]+ALGEBRAIC[52]+ALGEBRAIC[67]+ALGEBRAIC[72]+ALGEBRAIC[77])+CONSTANTS[77])/CONSTANTS[76];
ALGEBRAIC[58] = 1.00000/(1.00000+exp((STATES[17] - CONSTANTS[119])/CONSTANTS[120]));
ALGEBRAIC[63] =  CONSTANTS[118]*ALGEBRAIC[58]*STATES[20]*(STATES[17] - CONSTANTS[106]);
ALGEBRAIC[37] = 1.00000/(1.00000+exp((STATES[17] - CONSTANTS[108])/CONSTANTS[109]));
ALGEBRAIC[48] =  CONSTANTS[107]*pow(ALGEBRAIC[37], 3.00000)*(1.00000 - STATES[18])*(STATES[17] - CONSTANTS[106]);
ALGEBRAIC[53] =  CONSTANTS[113]*pow(STATES[19], 4.00000)*(STATES[17] - CONSTANTS[114]);
ALGEBRAIC[68] =  CONSTANTS[124]*(STATES[17] - CONSTANTS[125]);
ALGEBRAIC[73] =  CONSTANTS[127]*(STATES[17] - CONSTANTS[126]);
ALGEBRAIC[15] =  CONSTANTS[12]*STATES[3]+ CONSTANTS[13]*STATES[3]+ CONSTANTS[14]*STATES[3]+ CONSTANTS[15]*STATES[3];
ALGEBRAIC[78] =  ALGEBRAIC[15]*(STATES[17] - CONSTANTS[126]);
RATES[17] = (- (ALGEBRAIC[63]+ALGEBRAIC[48]+ALGEBRAIC[53]+ALGEBRAIC[68]+ALGEBRAIC[73]+ALGEBRAIC[78])+CONSTANTS[105])/CONSTANTS[104];
ALGEBRAIC[59] = 1.00000/(1.00000+exp((STATES[21] - CONSTANTS[147])/CONSTANTS[148]));
ALGEBRAIC[64] =  CONSTANTS[146]*ALGEBRAIC[59]*STATES[24]*(STATES[21] - CONSTANTS[134]);
ALGEBRAIC[41] = 1.00000/(1.00000+exp((STATES[21] - CONSTANTS[136])/CONSTANTS[137]));
ALGEBRAIC[49] =  CONSTANTS[135]*pow(ALGEBRAIC[41], 3.00000)*(1.00000 - STATES[22])*(STATES[21] - CONSTANTS[134]);
ALGEBRAIC[54] =  CONSTANTS[141]*pow(STATES[23], 4.00000)*(STATES[21] - CONSTANTS[142]);
ALGEBRAIC[69] =  CONSTANTS[152]*(STATES[21] - CONSTANTS[153]);
ALGEBRAIC[74] =  CONSTANTS[155]*(STATES[21] - CONSTANTS[154]);
ALGEBRAIC[20] =  CONSTANTS[16]*STATES[4]+ CONSTANTS[17]*STATES[4]+ CONSTANTS[18]*STATES[4]+ CONSTANTS[19]*STATES[4];
ALGEBRAIC[79] =  ALGEBRAIC[20]*(STATES[21] - CONSTANTS[154]);
RATES[21] = (- (ALGEBRAIC[64]+ALGEBRAIC[49]+ALGEBRAIC[54]+ALGEBRAIC[69]+ALGEBRAIC[74]+ALGEBRAIC[79])+CONSTANTS[133])/CONSTANTS[132];
}
void
computeVariables(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC)
{
ALGEBRAIC[4] = 1.00000/(1.00000+exp((STATES[5] - CONSTANTS[47])/CONSTANTS[46]));
ALGEBRAIC[9] = 1.00000/(1.00000+exp((STATES[9] - CONSTANTS[75])/CONSTANTS[74]));
ALGEBRAIC[14] = 1.00000/(1.00000+exp((STATES[13] - CONSTANTS[103])/CONSTANTS[102]));
ALGEBRAIC[19] = 1.00000/(1.00000+exp((STATES[17] - CONSTANTS[131])/CONSTANTS[130]));
ALGEBRAIC[24] = 1.00000/(1.00000+exp((STATES[21] - CONSTANTS[159])/CONSTANTS[158]));
ALGEBRAIC[1] = 1.00000/(1.00000+exp((STATES[5] - CONSTANTS[27])/CONSTANTS[28]));
ALGEBRAIC[26] = CONSTANTS[26]/cosh((STATES[5] - CONSTANTS[27])/( 2.00000*CONSTANTS[28]));
ALGEBRAIC[2] = 1.00000/(1.00000+exp((STATES[5] - CONSTANTS[32])/CONSTANTS[33]));
ALGEBRAIC[27] = CONSTANTS[31]/cosh((STATES[5] - CONSTANTS[32])/( 2.00000*CONSTANTS[33]));
ALGEBRAIC[3] = 1.00000/(1.00000+exp((STATES[5] - CONSTANTS[38])/CONSTANTS[39]));
ALGEBRAIC[28] = CONSTANTS[37]/cosh((STATES[5] - CONSTANTS[38])/( 2.00000*CONSTANTS[39]));
ALGEBRAIC[6] = 1.00000/(1.00000+exp((STATES[9] - CONSTANTS[55])/CONSTANTS[56]));
ALGEBRAIC[30] = CONSTANTS[54]/cosh((STATES[9] - CONSTANTS[55])/( 2.00000*CONSTANTS[56]));
ALGEBRAIC[7] = 1.00000/(1.00000+exp((STATES[9] - CONSTANTS[60])/CONSTANTS[61]));
ALGEBRAIC[31] = CONSTANTS[59]/cosh((STATES[9] - CONSTANTS[60])/( 2.00000*CONSTANTS[61]));
ALGEBRAIC[8] = 1.00000/(1.00000+exp((STATES[9] - CONSTANTS[66])/CONSTANTS[67]));
ALGEBRAIC[32] = CONSTANTS[65]/cosh((STATES[9] - CONSTANTS[66])/( 2.00000*CONSTANTS[67]));
ALGEBRAIC[11] = 1.00000/(1.00000+exp((STATES[13] - CONSTANTS[83])/CONSTANTS[84]));
ALGEBRAIC[34] = CONSTANTS[82]/cosh((STATES[13] - CONSTANTS[83])/( 2.00000*CONSTANTS[84]));
ALGEBRAIC[12] = 1.00000/(1.00000+exp((STATES[13] - CONSTANTS[88])/CONSTANTS[89]));
ALGEBRAIC[35] = CONSTANTS[87]/cosh((STATES[13] - CONSTANTS[88])/( 2.00000*CONSTANTS[89]));
ALGEBRAIC[13] = 1.00000/(1.00000+exp((STATES[13] - CONSTANTS[94])/CONSTANTS[95]));
ALGEBRAIC[36] = CONSTANTS[93]/cosh((STATES[13] - CONSTANTS[94])/( 2.00000*CONSTANTS[95]));
ALGEBRAIC[16] = 1.00000/(1.00000+exp((STATES[17] - CONSTANTS[111])/CONSTANTS[112]));
ALGEBRAIC[38] = CONSTANTS[110]/cosh((STATES[17] - CONSTANTS[111])/( 2.00000*CONSTANTS[112]));
ALGEBRAIC[17] = 1.00000/(1.00000+exp((STATES[17] - CONSTANTS[116])/CONSTANTS[117]));
ALGEBRAIC[39] = CONSTANTS[115]/cosh((STATES[17] - CONSTANTS[116])/( 2.00000*CONSTANTS[117]));
ALGEBRAIC[18] = 1.00000/(1.00000+exp((STATES[17] - CONSTANTS[122])/CONSTANTS[123]));
ALGEBRAIC[40] = CONSTANTS[121]/cosh((STATES[17] - CONSTANTS[122])/( 2.00000*CONSTANTS[123]));
ALGEBRAIC[21] = 1.00000/(1.00000+exp((STATES[21] - CONSTANTS[139])/CONSTANTS[140]));
ALGEBRAIC[42] = CONSTANTS[138]/cosh((STATES[21] - CONSTANTS[139])/( 2.00000*CONSTANTS[140]));
ALGEBRAIC[22] = 1.00000/(1.00000+exp((STATES[21] - CONSTANTS[144])/CONSTANTS[145]));
ALGEBRAIC[43] = CONSTANTS[143]/cosh((STATES[21] - CONSTANTS[144])/( 2.00000*CONSTANTS[145]));
ALGEBRAIC[23] = 1.00000/(1.00000+exp((STATES[21] - CONSTANTS[150])/CONSTANTS[151]));
ALGEBRAIC[44] = CONSTANTS[149]/cosh((STATES[21] - CONSTANTS[150])/( 2.00000*CONSTANTS[151]));
ALGEBRAIC[55] = 1.00000/(1.00000+exp((STATES[5] - CONSTANTS[35])/CONSTANTS[36]));
ALGEBRAIC[60] =  CONSTANTS[34]*ALGEBRAIC[55]*STATES[8]*(STATES[5] - CONSTANTS[22]);
ALGEBRAIC[25] = 1.00000/(1.00000+exp((STATES[5] - CONSTANTS[24])/CONSTANTS[25]));
ALGEBRAIC[45] =  CONSTANTS[23]*pow(ALGEBRAIC[25], 3.00000)*(1.00000 - STATES[6])*(STATES[5] - CONSTANTS[22]);
ALGEBRAIC[50] =  CONSTANTS[29]*pow(STATES[7], 4.00000)*(STATES[5] - CONSTANTS[30]);
ALGEBRAIC[65] =  CONSTANTS[40]*(STATES[5] - CONSTANTS[41]);
ALGEBRAIC[70] =  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[75] =  ALGEBRAIC[0]*(STATES[5] - CONSTANTS[42]);
ALGEBRAIC[56] = 1.00000/(1.00000+exp((STATES[9] - CONSTANTS[63])/CONSTANTS[64]));
ALGEBRAIC[61] =  CONSTANTS[62]*ALGEBRAIC[56]*STATES[12]*(STATES[9] - CONSTANTS[50]);
ALGEBRAIC[29] = 1.00000/(1.00000+exp((STATES[9] - CONSTANTS[52])/CONSTANTS[53]));
ALGEBRAIC[46] =  CONSTANTS[51]*pow(ALGEBRAIC[29], 3.00000)*(1.00000 - STATES[10])*(STATES[9] - CONSTANTS[50]);
ALGEBRAIC[51] =  CONSTANTS[57]*pow(STATES[11], 4.00000)*(STATES[9] - CONSTANTS[58]);
ALGEBRAIC[66] =  CONSTANTS[68]*(STATES[9] - CONSTANTS[69]);
ALGEBRAIC[71] =  CONSTANTS[71]*(STATES[9] - CONSTANTS[70]);
ALGEBRAIC[5] =  CONSTANTS[4]*STATES[1]+ CONSTANTS[5]*STATES[1]+ CONSTANTS[6]*STATES[1]+ CONSTANTS[7]*STATES[1];
ALGEBRAIC[76] =  ALGEBRAIC[5]*(STATES[9] - CONSTANTS[70]);
ALGEBRAIC[57] = 1.00000/(1.00000+exp((STATES[13] - CONSTANTS[91])/CONSTANTS[92]));
ALGEBRAIC[62] =  CONSTANTS[90]*ALGEBRAIC[57]*STATES[16]*(STATES[13] - CONSTANTS[78]);
ALGEBRAIC[33] = 1.00000/(1.00000+exp((STATES[13] - CONSTANTS[80])/CONSTANTS[81]));
ALGEBRAIC[47] =  CONSTANTS[79]*pow(ALGEBRAIC[33], 3.00000)*(1.00000 - STATES[14])*(STATES[13] - CONSTANTS[78]);
ALGEBRAIC[52] =  CONSTANTS[85]*pow(STATES[15], 4.00000)*(STATES[13] - CONSTANTS[86]);
ALGEBRAIC[67] =  CONSTANTS[96]*(STATES[13] - CONSTANTS[97]);
ALGEBRAIC[72] =  CONSTANTS[99]*(STATES[13] - CONSTANTS[98]);
ALGEBRAIC[10] =  CONSTANTS[8]*STATES[2]+ CONSTANTS[9]*STATES[2]+ CONSTANTS[10]*STATES[2]+ CONSTANTS[11]*STATES[2];
ALGEBRAIC[77] =  ALGEBRAIC[10]*(STATES[13] - CONSTANTS[98]);
ALGEBRAIC[58] = 1.00000/(1.00000+exp((STATES[17] - CONSTANTS[119])/CONSTANTS[120]));
ALGEBRAIC[63] =  CONSTANTS[118]*ALGEBRAIC[58]*STATES[20]*(STATES[17] - CONSTANTS[106]);
ALGEBRAIC[37] = 1.00000/(1.00000+exp((STATES[17] - CONSTANTS[108])/CONSTANTS[109]));
ALGEBRAIC[48] =  CONSTANTS[107]*pow(ALGEBRAIC[37], 3.00000)*(1.00000 - STATES[18])*(STATES[17] - CONSTANTS[106]);
ALGEBRAIC[53] =  CONSTANTS[113]*pow(STATES[19], 4.00000)*(STATES[17] - CONSTANTS[114]);
ALGEBRAIC[68] =  CONSTANTS[124]*(STATES[17] - CONSTANTS[125]);
ALGEBRAIC[73] =  CONSTANTS[127]*(STATES[17] - CONSTANTS[126]);
ALGEBRAIC[15] =  CONSTANTS[12]*STATES[3]+ CONSTANTS[13]*STATES[3]+ CONSTANTS[14]*STATES[3]+ CONSTANTS[15]*STATES[3];
ALGEBRAIC[78] =  ALGEBRAIC[15]*(STATES[17] - CONSTANTS[126]);
ALGEBRAIC[59] = 1.00000/(1.00000+exp((STATES[21] - CONSTANTS[147])/CONSTANTS[148]));
ALGEBRAIC[64] =  CONSTANTS[146]*ALGEBRAIC[59]*STATES[24]*(STATES[21] - CONSTANTS[134]);
ALGEBRAIC[41] = 1.00000/(1.00000+exp((STATES[21] - CONSTANTS[136])/CONSTANTS[137]));
ALGEBRAIC[49] =  CONSTANTS[135]*pow(ALGEBRAIC[41], 3.00000)*(1.00000 - STATES[22])*(STATES[21] - CONSTANTS[134]);
ALGEBRAIC[54] =  CONSTANTS[141]*pow(STATES[23], 4.00000)*(STATES[21] - CONSTANTS[142]);
ALGEBRAIC[69] =  CONSTANTS[152]*(STATES[21] - CONSTANTS[153]);
ALGEBRAIC[74] =  CONSTANTS[155]*(STATES[21] - CONSTANTS[154]);
ALGEBRAIC[20] =  CONSTANTS[16]*STATES[4]+ CONSTANTS[17]*STATES[4]+ CONSTANTS[18]*STATES[4]+ CONSTANTS[19]*STATES[4];
ALGEBRAIC[79] =  ALGEBRAIC[20]*(STATES[21] - CONSTANTS[154]);
}