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 93 entries in the algebraic variable array.
   There are a total of 24 entries in each of the rate and state variable arrays.
   There are a total of 44 entries in the constant variable array.
 */
/*
 * VOI is t in component environment (second).
 * CONSTANTS[0] is R in component environment (J_per_K_per_mol).
 * CONSTANTS[1] is T in component environment (kelvin).
 * CONSTANTS[2] is F in component environment (C_per_mol).
 * CONSTANTS[3] is C_m in component environment (fF).
 * STATES[0] is q_K_o in component environment (fmol).
 * STATES[1] is q_K_i in component environment (fmol).
 * STATES[2] is q_Na_o in component environment (fmol).
 * STATES[3] is q_Na_i in component environment (fmol).
 * STATES[4] is q_H_i in component environment (fmol).
 * STATES[5] is q_MgADP in component environment (fmol).
 * STATES[6] is q_MgATP in component environment (fmol).
 * STATES[7] is q_Pi in component environment (fmol).
 * STATES[8] is q_P7 in component environment (fmol).
 * STATES[9] is q_P14 in component environment (fmol).
 * STATES[10] is q_P15 in component environment (fmol).
 * STATES[11] is q_P1 in component environment (fmol).
 * STATES[12] is q_P2 in component environment (fmol).
 * STATES[13] is q_P3 in component environment (fmol).
 * STATES[14] is q_P4 in component environment (fmol).
 * STATES[15] is q_P5 in component environment (fmol).
 * STATES[16] is q_P6 in component environment (fmol).
 * STATES[17] is q_P10 in component environment (fmol).
 * STATES[18] is q_P11 in component environment (fmol).
 * STATES[19] is q_P12 in component environment (fmol).
 * STATES[20] is q_P13 in component environment (fmol).
 * STATES[21] is q_P8 in component environment (fmol).
 * STATES[22] is q_P9 in component environment (fmol).
 * ALGEBRAIC[54] is v_K_o_NaK in component NaK (fmol_per_sec).
 * ALGEBRAIC[47] is v_K_i_NaK in component NaK (fmol_per_sec).
 * ALGEBRAIC[90] is v_Na_o_NaK in component NaK (fmol_per_sec).
 * ALGEBRAIC[69] is v_Na_i_NaK in component NaK (fmol_per_sec).
 * ALGEBRAIC[61] is v_H_NaK in component NaK (fmol_per_sec).
 * ALGEBRAIC[77] is v_MgADP_NaK in component NaK (fmol_per_sec).
 * ALGEBRAIC[70] is v_MgATP_NaK in component NaK (fmol_per_sec).
 * ALGEBRAIC[62] is v_Pi_NaK in component NaK (fmol_per_sec).
 * STATES[23] is q_mem in component environment (fC).
 * ALGEBRAIC[86] is I_mem_NaK in component NaK (fA).
 * CONSTANTS[4] is kappa_1_NaK in component NaK_parameters (fmol_per_sec).
 * CONSTANTS[5] is kappa_2_NaK in component NaK_parameters (fmol_per_sec).
 * CONSTANTS[6] is kappa_3_NaK in component NaK_parameters (fmol_per_sec).
 * CONSTANTS[7] is kappa_4_NaK in component NaK_parameters (fmol_per_sec).
 * CONSTANTS[8] is kappa_5_NaK in component NaK_parameters (fmol_per_sec).
 * CONSTANTS[9] is kappa_6_NaK in component NaK_parameters (fmol_per_sec).
 * CONSTANTS[10] is kappa_7_NaK in component NaK_parameters (fmol_per_sec).
 * CONSTANTS[11] is kappa_8_NaK in component NaK_parameters (fmol_per_sec).
 * CONSTANTS[12] is kappa_9_NaK in component NaK_parameters (fmol_per_sec).
 * CONSTANTS[13] is kappa_10_NaK in component NaK_parameters (fmol_per_sec).
 * CONSTANTS[14] is kappa_11_NaK in component NaK_parameters (fmol_per_sec).
 * CONSTANTS[15] is kappa_12_NaK in component NaK_parameters (fmol_per_sec).
 * CONSTANTS[16] is kappa_13_NaK in component NaK_parameters (fmol_per_sec).
 * CONSTANTS[17] is kappa_14_NaK in component NaK_parameters (fmol_per_sec).
 * CONSTANTS[18] is kappa_15_NaK in component NaK_parameters (fmol_per_sec).
 * CONSTANTS[19] is K_1_NaK in component NaK_parameters (per_fmol).
 * CONSTANTS[20] is K_2_NaK in component NaK_parameters (per_fmol).
 * CONSTANTS[21] is K_3_NaK in component NaK_parameters (per_fmol).
 * CONSTANTS[22] is K_4_NaK in component NaK_parameters (per_fmol).
 * CONSTANTS[23] is K_5_NaK in component NaK_parameters (per_fmol).
 * CONSTANTS[24] is K_6_NaK in component NaK_parameters (per_fmol).
 * CONSTANTS[25] is K_7_NaK in component NaK_parameters (per_fmol).
 * CONSTANTS[26] is K_8_NaK in component NaK_parameters (per_fmol).
 * CONSTANTS[27] is K_9_NaK in component NaK_parameters (per_fmol).
 * CONSTANTS[28] is K_10_NaK in component NaK_parameters (per_fmol).
 * CONSTANTS[29] is K_11_NaK in component NaK_parameters (per_fmol).
 * CONSTANTS[30] is K_12_NaK in component NaK_parameters (per_fmol).
 * CONSTANTS[31] is K_13_NaK in component NaK_parameters (per_fmol).
 * CONSTANTS[32] is K_14_NaK in component NaK_parameters (per_fmol).
 * CONSTANTS[33] is K_15_NaK in component NaK_parameters (per_fmol).
 * CONSTANTS[34] is K_K_i in component NaK_parameters (per_fmol).
 * CONSTANTS[35] is K_K_o in component NaK_parameters (per_fmol).
 * CONSTANTS[36] is K_Na_i in component NaK_parameters (per_fmol).
 * CONSTANTS[37] is K_Na_o in component NaK_parameters (per_fmol).
 * CONSTANTS[38] is K_MgATP in component NaK_parameters (per_fmol).
 * CONSTANTS[39] is K_MgADP in component NaK_parameters (per_fmol).
 * CONSTANTS[40] is K_Pi in component NaK_parameters (per_fmol).
 * CONSTANTS[41] is K_H in component NaK_parameters (per_fmol).
 * CONSTANTS[42] is zF_5 in component NaK_parameters (C_per_mol).
 * CONSTANTS[43] is zF_8 in component NaK_parameters (C_per_mol).
 * ALGEBRAIC[2] is mu_K_o in component NaK (J_per_mol).
 * ALGEBRAIC[3] is mu_K_i in component NaK (J_per_mol).
 * ALGEBRAIC[6] is mu_Na_o in component NaK (J_per_mol).
 * ALGEBRAIC[7] is mu_Na_i in component NaK (J_per_mol).
 * ALGEBRAIC[1] is mu_H in component NaK (J_per_mol).
 * ALGEBRAIC[4] is mu_MgADP in component NaK (J_per_mol).
 * ALGEBRAIC[5] is mu_MgATP in component NaK (J_per_mol).
 * ALGEBRAIC[20] is mu_P7 in component NaK (J_per_mol).
 * ALGEBRAIC[23] is mu_Pi in component NaK (J_per_mol).
 * ALGEBRAIC[13] is mu_P14 in component NaK (J_per_mol).
 * ALGEBRAIC[14] is mu_P15 in component NaK (J_per_mol).
 * ALGEBRAIC[8] is mu_P1 in component NaK (J_per_mol).
 * ALGEBRAIC[15] is mu_P2 in component NaK (J_per_mol).
 * ALGEBRAIC[16] is mu_P3 in component NaK (J_per_mol).
 * ALGEBRAIC[17] is mu_P4 in component NaK (J_per_mol).
 * ALGEBRAIC[18] is mu_P5 in component NaK (J_per_mol).
 * ALGEBRAIC[19] is mu_P6 in component NaK (J_per_mol).
 * ALGEBRAIC[9] is mu_P10 in component NaK (J_per_mol).
 * ALGEBRAIC[10] is mu_P11 in component NaK (J_per_mol).
 * ALGEBRAIC[11] is mu_P12 in component NaK (J_per_mol).
 * ALGEBRAIC[12] is mu_P13 in component NaK (J_per_mol).
 * ALGEBRAIC[21] is mu_P8 in component NaK (J_per_mol).
 * ALGEBRAIC[22] is mu_P9 in component NaK (J_per_mol).
 * ALGEBRAIC[71] is v_P14 in component NaK (fmol_per_sec).
 * ALGEBRAIC[79] is v_P15 in component NaK (fmol_per_sec).
 * ALGEBRAIC[80] is v_P1 in component NaK (fmol_per_sec).
 * ALGEBRAIC[49] is v_P2 in component NaK (fmol_per_sec).
 * ALGEBRAIC[56] is v_P3 in component NaK (fmol_per_sec).
 * ALGEBRAIC[63] is v_P4 in component NaK (fmol_per_sec).
 * ALGEBRAIC[72] is v_P5 in component NaK (fmol_per_sec).
 * ALGEBRAIC[81] is v_P6 in component NaK (fmol_per_sec).
 * ALGEBRAIC[91] is v_P10 in component NaK (fmol_per_sec).
 * ALGEBRAIC[50] is v_P11 in component NaK (fmol_per_sec).
 * ALGEBRAIC[57] is v_P12 in component NaK (fmol_per_sec).
 * ALGEBRAIC[64] is v_P13 in component NaK (fmol_per_sec).
 * ALGEBRAIC[84] is v_P7 in component NaK (fmol_per_sec).
 * ALGEBRAIC[87] is v_P8 in component NaK (fmol_per_sec).
 * ALGEBRAIC[92] is v_P9 in component NaK (fmol_per_sec).
 * ALGEBRAIC[24] is Af_R1 in component NaK (J_per_mol).
 * ALGEBRAIC[39] is Ar_R1 in component NaK (J_per_mol).
 * ALGEBRAIC[40] is v_R1 in component NaK (fmol_per_sec).
 * ALGEBRAIC[25] is Af_R10 in component NaK (J_per_mol).
 * ALGEBRAIC[41] is Ar_R10 in component NaK (J_per_mol).
 * ALGEBRAIC[42] is v_R10 in component NaK (fmol_per_sec).
 * ALGEBRAIC[26] is Af_R11 in component NaK (J_per_mol).
 * ALGEBRAIC[44] is Ar_R11 in component NaK (J_per_mol).
 * ALGEBRAIC[46] is v_R11 in component NaK (fmol_per_sec).
 * ALGEBRAIC[27] is Af_R12 in component NaK (J_per_mol).
 * ALGEBRAIC[51] is Ar_R12 in component NaK (J_per_mol).
 * ALGEBRAIC[53] is v_R12 in component NaK (fmol_per_sec).
 * ALGEBRAIC[28] is Af_R13 in component NaK (J_per_mol).
 * ALGEBRAIC[58] is Ar_R13 in component NaK (J_per_mol).
 * ALGEBRAIC[59] is v_R13 in component NaK (fmol_per_sec).
 * ALGEBRAIC[29] is Af_R14 in component NaK (J_per_mol).
 * ALGEBRAIC[65] is Ar_R14 in component NaK (J_per_mol).
 * ALGEBRAIC[67] is v_R14 in component NaK (fmol_per_sec).
 * ALGEBRAIC[30] is Af_R15 in component NaK (J_per_mol).
 * ALGEBRAIC[73] is Ar_R15 in component NaK (J_per_mol).
 * ALGEBRAIC[75] is v_R15 in component NaK (fmol_per_sec).
 * ALGEBRAIC[31] is Af_R2 in component NaK (J_per_mol).
 * ALGEBRAIC[43] is Ar_R2 in component NaK (J_per_mol).
 * ALGEBRAIC[45] is v_R2 in component NaK (fmol_per_sec).
 * ALGEBRAIC[32] is Af_R3 in component NaK (J_per_mol).
 * ALGEBRAIC[48] is Ar_R3 in component NaK (J_per_mol).
 * ALGEBRAIC[52] is v_R3 in component NaK (fmol_per_sec).
 * ALGEBRAIC[33] is Af_R4 in component NaK (J_per_mol).
 * ALGEBRAIC[55] is Ar_R4 in component NaK (J_per_mol).
 * ALGEBRAIC[60] is v_R4 in component NaK (fmol_per_sec).
 * ALGEBRAIC[34] is Af_R5 in component NaK (J_per_mol).
 * ALGEBRAIC[66] is Ar_R5 in component NaK (J_per_mol).
 * ALGEBRAIC[68] is v_R5 in component NaK (fmol_per_sec).
 * ALGEBRAIC[35] is Af_R6 in component NaK (J_per_mol).
 * ALGEBRAIC[74] is Ar_R6 in component NaK (J_per_mol).
 * ALGEBRAIC[76] is v_R6 in component NaK (fmol_per_sec).
 * ALGEBRAIC[36] is Af_R7 in component NaK (J_per_mol).
 * ALGEBRAIC[78] is Ar_R7 in component NaK (J_per_mol).
 * ALGEBRAIC[82] is v_R7 in component NaK (fmol_per_sec).
 * ALGEBRAIC[37] is Af_R8 in component NaK (J_per_mol).
 * ALGEBRAIC[83] is Ar_R8 in component NaK (J_per_mol).
 * ALGEBRAIC[85] is v_R8 in component NaK (fmol_per_sec).
 * ALGEBRAIC[38] is Af_R9 in component NaK (J_per_mol).
 * ALGEBRAIC[88] is Ar_R9 in component NaK (J_per_mol).
 * ALGEBRAIC[89] is v_R9 in component NaK (fmol_per_sec).
 * ALGEBRAIC[0] is V_mem in component NaK (volt).
 * RATES[0] is d/dt q_K_o in component environment (fmol).
 * RATES[1] is d/dt q_K_i in component environment (fmol).
 * RATES[2] is d/dt q_Na_o in component environment (fmol).
 * RATES[3] is d/dt q_Na_i in component environment (fmol).
 * RATES[4] is d/dt q_H_i in component environment (fmol).
 * RATES[5] is d/dt q_MgADP in component environment (fmol).
 * RATES[6] is d/dt q_MgATP in component environment (fmol).
 * RATES[7] is d/dt q_Pi in component environment (fmol).
 * RATES[23] is d/dt q_mem in component environment (fC).
 * RATES[8] is d/dt q_P7 in component environment (fmol).
 * RATES[9] is d/dt q_P14 in component environment (fmol).
 * RATES[10] is d/dt q_P15 in component environment (fmol).
 * RATES[11] is d/dt q_P1 in component environment (fmol).
 * RATES[12] is d/dt q_P2 in component environment (fmol).
 * RATES[13] is d/dt q_P3 in component environment (fmol).
 * RATES[14] is d/dt q_P4 in component environment (fmol).
 * RATES[15] is d/dt q_P5 in component environment (fmol).
 * RATES[16] is d/dt q_P6 in component environment (fmol).
 * RATES[17] is d/dt q_P10 in component environment (fmol).
 * RATES[18] is d/dt q_P11 in component environment (fmol).
 * RATES[19] is d/dt q_P12 in component environment (fmol).
 * RATES[20] is d/dt q_P13 in component environment (fmol).
 * RATES[21] is d/dt q_P8 in component environment (fmol).
 * RATES[22] is d/dt q_P9 in component environment (fmol).
 */
void
initConsts(double* CONSTANTS, double* RATES, double *STATES)
{
CONSTANTS[0] = 8.314;
CONSTANTS[1] = 310;
CONSTANTS[2] = 96485;
CONSTANTS[3] = 153400;
STATES[0] = 27.9828;
STATES[1] = 5510;
STATES[2] = 725.48;
STATES[3] = 380;
STATES[4] = 0.0030534;
STATES[5] = 1.33;
STATES[6] = 264.1;
STATES[7] = 15.0898;
STATES[8] = 0.001126432;
STATES[9] = 0.001126432;
STATES[10] = 0.001126432;
STATES[11] = 0.001126432;
STATES[12] = 0.001126432;
STATES[13] = 0.001126432;
STATES[14] = 0.001126432;
STATES[15] = 0.001126432;
STATES[16] = 0.001126432;
STATES[17] = 0.001126432;
STATES[18] = 0.001126432;
STATES[19] = 0.001126432;
STATES[20] = 0.001126432;
STATES[21] = 0.001126432;
STATES[22] = 0.001126432;
STATES[23] = -13039;
CONSTANTS[4] = 28701.2;
CONSTANTS[5] = 1.02749e+06;
CONSTANTS[6] = 36989.9;
CONSTANTS[7] = 110769;
CONSTANTS[8] = 143.043;
CONSTANTS[9] = 0.203578;
CONSTANTS[10] = 73.4728;
CONSTANTS[11] = 70.4896;
CONSTANTS[12] = 19895.6;
CONSTANTS[13] = 1.40388e+06;
CONSTANTS[14] = 7905.94;
CONSTANTS[15] = 6193.15;
CONSTANTS[16] = 0.55667;
CONSTANTS[17] = 6163.37;
CONSTANTS[18] = 1.34489;
CONSTANTS[19] = 1.17033e+06;
CONSTANTS[20] = 8172.83;
CONSTANTS[21] = 228.295;
CONSTANTS[22] = 76.2363;
CONSTANTS[23] = 101.833;
CONSTANTS[24] = 6990.92;
CONSTANTS[25] = 157.403;
CONSTANTS[26] = 494.813;
CONSTANTS[27] = 1.06726e+06;
CONSTANTS[28] = 3781.29;
CONSTANTS[29] = 53.588;
CONSTANTS[30] = 68.4084;
CONSTANTS[31] = 349.31;
CONSTANTS[32] = 105.854;
CONSTANTS[33] = 22775;
CONSTANTS[34] = 0.000123928;
CONSTANTS[35] = 0.455493;
CONSTANTS[36] = 0.00344241;
CONSTANTS[37] = 0.00256511;
CONSTANTS[38] = 0.0445571;
CONSTANTS[39] = 0.204939;
CONSTANTS[40] = 2.00757;
CONSTANTS[41] = 2.00757;
CONSTANTS[42] = -5301.979;
CONSTANTS[43] = -91183.021;
}
void
computeRates(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC)
{
ALGEBRAIC[8] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[19]*STATES[11]);
ALGEBRAIC[24] = ALGEBRAIC[8];
ALGEBRAIC[3] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[34]*STATES[1]);
ALGEBRAIC[15] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[20]*STATES[12]);
ALGEBRAIC[39] = ALGEBRAIC[3]+ALGEBRAIC[15];
ALGEBRAIC[40] =  CONSTANTS[4]*(exp(ALGEBRAIC[24]/( CONSTANTS[0]*CONSTANTS[1])) - exp(ALGEBRAIC[39]/( CONSTANTS[0]*CONSTANTS[1])));
ALGEBRAIC[31] = ALGEBRAIC[15];
ALGEBRAIC[16] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[21]*STATES[13]);
ALGEBRAIC[43] = ALGEBRAIC[16]+ALGEBRAIC[3];
ALGEBRAIC[45] =  CONSTANTS[5]*(exp(ALGEBRAIC[31]/( CONSTANTS[0]*CONSTANTS[1])) - exp(ALGEBRAIC[43]/( CONSTANTS[0]*CONSTANTS[1])));
ALGEBRAIC[47] = ALGEBRAIC[40]+ALGEBRAIC[45];
RATES[1] = ALGEBRAIC[47];
ALGEBRAIC[49] = - ALGEBRAIC[45]+ALGEBRAIC[40];
RATES[12] = ALGEBRAIC[49];
ALGEBRAIC[9] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[28]*STATES[17]);
ALGEBRAIC[25] = ALGEBRAIC[9];
ALGEBRAIC[6] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[37]*STATES[2]);
ALGEBRAIC[10] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[29]*STATES[18]);
ALGEBRAIC[41] = ALGEBRAIC[6]+ALGEBRAIC[10];
ALGEBRAIC[42] =  CONSTANTS[13]*(exp(ALGEBRAIC[25]/( CONSTANTS[0]*CONSTANTS[1])) - exp(ALGEBRAIC[41]/( CONSTANTS[0]*CONSTANTS[1])));
ALGEBRAIC[2] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[35]*STATES[0]);
ALGEBRAIC[26] = ALGEBRAIC[10]+ALGEBRAIC[2];
ALGEBRAIC[11] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[30]*STATES[19]);
ALGEBRAIC[44] = ALGEBRAIC[11];
ALGEBRAIC[46] =  CONSTANTS[14]*(exp(ALGEBRAIC[26]/( CONSTANTS[0]*CONSTANTS[1])) - exp(ALGEBRAIC[44]/( CONSTANTS[0]*CONSTANTS[1])));
ALGEBRAIC[50] = ALGEBRAIC[42] - ALGEBRAIC[46];
RATES[18] = ALGEBRAIC[50];
ALGEBRAIC[27] = ALGEBRAIC[11]+ALGEBRAIC[2];
ALGEBRAIC[12] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[31]*STATES[20]);
ALGEBRAIC[51] = ALGEBRAIC[12];
ALGEBRAIC[53] =  CONSTANTS[15]*(exp(ALGEBRAIC[27]/( CONSTANTS[0]*CONSTANTS[1])) - exp(ALGEBRAIC[51]/( CONSTANTS[0]*CONSTANTS[1])));
ALGEBRAIC[54] = - ALGEBRAIC[46] - ALGEBRAIC[53];
RATES[0] = ALGEBRAIC[54];
ALGEBRAIC[7] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[36]*STATES[3]);
ALGEBRAIC[32] = ALGEBRAIC[16]+ALGEBRAIC[7];
ALGEBRAIC[17] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[22]*STATES[14]);
ALGEBRAIC[48] = ALGEBRAIC[17];
ALGEBRAIC[52] =  CONSTANTS[6]*(exp(ALGEBRAIC[32]/( CONSTANTS[0]*CONSTANTS[1])) - exp(ALGEBRAIC[48]/( CONSTANTS[0]*CONSTANTS[1])));
ALGEBRAIC[56] = ALGEBRAIC[45] - ALGEBRAIC[52];
RATES[13] = ALGEBRAIC[56];
ALGEBRAIC[57] = - ALGEBRAIC[53]+ALGEBRAIC[46];
RATES[19] = ALGEBRAIC[57];
ALGEBRAIC[28] = ALGEBRAIC[12];
ALGEBRAIC[1] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[41]*STATES[4]);
ALGEBRAIC[23] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[40]*STATES[7]);
ALGEBRAIC[13] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[32]*STATES[9]);
ALGEBRAIC[58] = ALGEBRAIC[1]+ALGEBRAIC[23]+ALGEBRAIC[13];
ALGEBRAIC[59] =  CONSTANTS[16]*(exp(ALGEBRAIC[28]/( CONSTANTS[0]*CONSTANTS[1])) - exp(ALGEBRAIC[58]/( CONSTANTS[0]*CONSTANTS[1])));
ALGEBRAIC[61] = ALGEBRAIC[59];
RATES[4] = ALGEBRAIC[61];
ALGEBRAIC[62] = ALGEBRAIC[59];
RATES[7] = ALGEBRAIC[62];
ALGEBRAIC[33] = ALGEBRAIC[17]+ALGEBRAIC[7];
ALGEBRAIC[18] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[23]*STATES[15]);
ALGEBRAIC[55] = ALGEBRAIC[18];
ALGEBRAIC[60] =  CONSTANTS[7]*(exp(ALGEBRAIC[33]/( CONSTANTS[0]*CONSTANTS[1])) - exp(ALGEBRAIC[55]/( CONSTANTS[0]*CONSTANTS[1])));
ALGEBRAIC[63] = ALGEBRAIC[52] - ALGEBRAIC[60];
RATES[14] = ALGEBRAIC[63];
ALGEBRAIC[64] = ALGEBRAIC[53] - ALGEBRAIC[59];
RATES[20] = ALGEBRAIC[64];
ALGEBRAIC[34] = ALGEBRAIC[18]+ALGEBRAIC[7];
ALGEBRAIC[0] = STATES[23]/CONSTANTS[3];
ALGEBRAIC[66] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[24]*STATES[16])+ CONSTANTS[42]*ALGEBRAIC[0];
ALGEBRAIC[68] =  CONSTANTS[8]*(exp(ALGEBRAIC[34]/( CONSTANTS[0]*CONSTANTS[1])) - exp(ALGEBRAIC[66]/( CONSTANTS[0]*CONSTANTS[1])));
ALGEBRAIC[69] = - ALGEBRAIC[52] - (ALGEBRAIC[60]+ALGEBRAIC[68]);
RATES[3] = ALGEBRAIC[69];
ALGEBRAIC[5] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[38]*STATES[6]);
ALGEBRAIC[29] = ALGEBRAIC[13]+ALGEBRAIC[5];
ALGEBRAIC[14] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[33]*STATES[10]);
ALGEBRAIC[65] = ALGEBRAIC[14];
ALGEBRAIC[67] =  CONSTANTS[17]*(exp(ALGEBRAIC[29]/( CONSTANTS[0]*CONSTANTS[1])) - exp(ALGEBRAIC[65]/( CONSTANTS[0]*CONSTANTS[1])));
ALGEBRAIC[70] = - ALGEBRAIC[67];
RATES[6] = ALGEBRAIC[70];
ALGEBRAIC[71] = - ALGEBRAIC[67]+ALGEBRAIC[59];
RATES[9] = ALGEBRAIC[71];
ALGEBRAIC[72] = ALGEBRAIC[60] - ALGEBRAIC[68];
RATES[15] = ALGEBRAIC[72];
ALGEBRAIC[19] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[24]*STATES[16]);
ALGEBRAIC[35] = ALGEBRAIC[19];
ALGEBRAIC[4] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[39]*STATES[5]);
ALGEBRAIC[20] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[25]*STATES[8]);
ALGEBRAIC[74] = ALGEBRAIC[20]+ALGEBRAIC[4];
ALGEBRAIC[76] =  CONSTANTS[9]*(exp(ALGEBRAIC[35]/( CONSTANTS[0]*CONSTANTS[1])) - exp(ALGEBRAIC[74]/( CONSTANTS[0]*CONSTANTS[1])));
ALGEBRAIC[77] = ALGEBRAIC[76];
RATES[5] = ALGEBRAIC[77];
ALGEBRAIC[30] = ALGEBRAIC[14];
ALGEBRAIC[73] = ALGEBRAIC[8];
ALGEBRAIC[75] =  CONSTANTS[18]*(exp(ALGEBRAIC[30]/( CONSTANTS[0]*CONSTANTS[1])) - exp(ALGEBRAIC[73]/( CONSTANTS[0]*CONSTANTS[1])));
ALGEBRAIC[79] = ALGEBRAIC[67] - ALGEBRAIC[75];
RATES[10] = ALGEBRAIC[79];
ALGEBRAIC[80] = - ALGEBRAIC[40]+ALGEBRAIC[75];
RATES[11] = ALGEBRAIC[80];
ALGEBRAIC[81] = ALGEBRAIC[68] - ALGEBRAIC[76];
RATES[16] = ALGEBRAIC[81];
ALGEBRAIC[36] = ALGEBRAIC[20];
ALGEBRAIC[21] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[26]*STATES[21]);
ALGEBRAIC[78] = ALGEBRAIC[21];
ALGEBRAIC[82] =  CONSTANTS[10]*(exp(ALGEBRAIC[36]/( CONSTANTS[0]*CONSTANTS[1])) - exp(ALGEBRAIC[78]/( CONSTANTS[0]*CONSTANTS[1])));
ALGEBRAIC[84] = ALGEBRAIC[76] - ALGEBRAIC[82];
RATES[8] = ALGEBRAIC[84];
ALGEBRAIC[37] = ALGEBRAIC[21];
ALGEBRAIC[83] =  CONSTANTS[43]*ALGEBRAIC[0]+ CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[37]*STATES[2])+ CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[27]*STATES[22]);
ALGEBRAIC[85] =  CONSTANTS[11]*(exp(ALGEBRAIC[37]/( CONSTANTS[0]*CONSTANTS[1])) - exp(ALGEBRAIC[83]/( CONSTANTS[0]*CONSTANTS[1])));
ALGEBRAIC[86] =  CONSTANTS[43]*ALGEBRAIC[85]+ CONSTANTS[42]*ALGEBRAIC[68];
RATES[23] = ALGEBRAIC[86];
ALGEBRAIC[87] = - ALGEBRAIC[85]+ALGEBRAIC[82];
RATES[21] = ALGEBRAIC[87];
ALGEBRAIC[22] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[27]*STATES[22]);
ALGEBRAIC[38] = ALGEBRAIC[22];
ALGEBRAIC[88] = ALGEBRAIC[9]+ALGEBRAIC[6];
ALGEBRAIC[89] =  CONSTANTS[12]*(exp(ALGEBRAIC[38]/( CONSTANTS[0]*CONSTANTS[1])) - exp(ALGEBRAIC[88]/( CONSTANTS[0]*CONSTANTS[1])));
ALGEBRAIC[90] = ALGEBRAIC[85]+ALGEBRAIC[89]+ALGEBRAIC[42];
RATES[2] = ALGEBRAIC[90];
ALGEBRAIC[91] = ALGEBRAIC[89] - ALGEBRAIC[42];
RATES[17] = ALGEBRAIC[91];
ALGEBRAIC[92] = ALGEBRAIC[85] - ALGEBRAIC[89];
RATES[22] = ALGEBRAIC[92];
}
void
computeVariables(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC)
{
ALGEBRAIC[8] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[19]*STATES[11]);
ALGEBRAIC[24] = ALGEBRAIC[8];
ALGEBRAIC[3] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[34]*STATES[1]);
ALGEBRAIC[15] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[20]*STATES[12]);
ALGEBRAIC[39] = ALGEBRAIC[3]+ALGEBRAIC[15];
ALGEBRAIC[40] =  CONSTANTS[4]*(exp(ALGEBRAIC[24]/( CONSTANTS[0]*CONSTANTS[1])) - exp(ALGEBRAIC[39]/( CONSTANTS[0]*CONSTANTS[1])));
ALGEBRAIC[31] = ALGEBRAIC[15];
ALGEBRAIC[16] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[21]*STATES[13]);
ALGEBRAIC[43] = ALGEBRAIC[16]+ALGEBRAIC[3];
ALGEBRAIC[45] =  CONSTANTS[5]*(exp(ALGEBRAIC[31]/( CONSTANTS[0]*CONSTANTS[1])) - exp(ALGEBRAIC[43]/( CONSTANTS[0]*CONSTANTS[1])));
ALGEBRAIC[47] = ALGEBRAIC[40]+ALGEBRAIC[45];
ALGEBRAIC[49] = - ALGEBRAIC[45]+ALGEBRAIC[40];
ALGEBRAIC[9] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[28]*STATES[17]);
ALGEBRAIC[25] = ALGEBRAIC[9];
ALGEBRAIC[6] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[37]*STATES[2]);
ALGEBRAIC[10] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[29]*STATES[18]);
ALGEBRAIC[41] = ALGEBRAIC[6]+ALGEBRAIC[10];
ALGEBRAIC[42] =  CONSTANTS[13]*(exp(ALGEBRAIC[25]/( CONSTANTS[0]*CONSTANTS[1])) - exp(ALGEBRAIC[41]/( CONSTANTS[0]*CONSTANTS[1])));
ALGEBRAIC[2] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[35]*STATES[0]);
ALGEBRAIC[26] = ALGEBRAIC[10]+ALGEBRAIC[2];
ALGEBRAIC[11] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[30]*STATES[19]);
ALGEBRAIC[44] = ALGEBRAIC[11];
ALGEBRAIC[46] =  CONSTANTS[14]*(exp(ALGEBRAIC[26]/( CONSTANTS[0]*CONSTANTS[1])) - exp(ALGEBRAIC[44]/( CONSTANTS[0]*CONSTANTS[1])));
ALGEBRAIC[50] = ALGEBRAIC[42] - ALGEBRAIC[46];
ALGEBRAIC[27] = ALGEBRAIC[11]+ALGEBRAIC[2];
ALGEBRAIC[12] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[31]*STATES[20]);
ALGEBRAIC[51] = ALGEBRAIC[12];
ALGEBRAIC[53] =  CONSTANTS[15]*(exp(ALGEBRAIC[27]/( CONSTANTS[0]*CONSTANTS[1])) - exp(ALGEBRAIC[51]/( CONSTANTS[0]*CONSTANTS[1])));
ALGEBRAIC[54] = - ALGEBRAIC[46] - ALGEBRAIC[53];
ALGEBRAIC[7] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[36]*STATES[3]);
ALGEBRAIC[32] = ALGEBRAIC[16]+ALGEBRAIC[7];
ALGEBRAIC[17] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[22]*STATES[14]);
ALGEBRAIC[48] = ALGEBRAIC[17];
ALGEBRAIC[52] =  CONSTANTS[6]*(exp(ALGEBRAIC[32]/( CONSTANTS[0]*CONSTANTS[1])) - exp(ALGEBRAIC[48]/( CONSTANTS[0]*CONSTANTS[1])));
ALGEBRAIC[56] = ALGEBRAIC[45] - ALGEBRAIC[52];
ALGEBRAIC[57] = - ALGEBRAIC[53]+ALGEBRAIC[46];
ALGEBRAIC[28] = ALGEBRAIC[12];
ALGEBRAIC[1] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[41]*STATES[4]);
ALGEBRAIC[23] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[40]*STATES[7]);
ALGEBRAIC[13] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[32]*STATES[9]);
ALGEBRAIC[58] = ALGEBRAIC[1]+ALGEBRAIC[23]+ALGEBRAIC[13];
ALGEBRAIC[59] =  CONSTANTS[16]*(exp(ALGEBRAIC[28]/( CONSTANTS[0]*CONSTANTS[1])) - exp(ALGEBRAIC[58]/( CONSTANTS[0]*CONSTANTS[1])));
ALGEBRAIC[61] = ALGEBRAIC[59];
ALGEBRAIC[62] = ALGEBRAIC[59];
ALGEBRAIC[33] = ALGEBRAIC[17]+ALGEBRAIC[7];
ALGEBRAIC[18] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[23]*STATES[15]);
ALGEBRAIC[55] = ALGEBRAIC[18];
ALGEBRAIC[60] =  CONSTANTS[7]*(exp(ALGEBRAIC[33]/( CONSTANTS[0]*CONSTANTS[1])) - exp(ALGEBRAIC[55]/( CONSTANTS[0]*CONSTANTS[1])));
ALGEBRAIC[63] = ALGEBRAIC[52] - ALGEBRAIC[60];
ALGEBRAIC[64] = ALGEBRAIC[53] - ALGEBRAIC[59];
ALGEBRAIC[34] = ALGEBRAIC[18]+ALGEBRAIC[7];
ALGEBRAIC[0] = STATES[23]/CONSTANTS[3];
ALGEBRAIC[66] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[24]*STATES[16])+ CONSTANTS[42]*ALGEBRAIC[0];
ALGEBRAIC[68] =  CONSTANTS[8]*(exp(ALGEBRAIC[34]/( CONSTANTS[0]*CONSTANTS[1])) - exp(ALGEBRAIC[66]/( CONSTANTS[0]*CONSTANTS[1])));
ALGEBRAIC[69] = - ALGEBRAIC[52] - (ALGEBRAIC[60]+ALGEBRAIC[68]);
ALGEBRAIC[5] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[38]*STATES[6]);
ALGEBRAIC[29] = ALGEBRAIC[13]+ALGEBRAIC[5];
ALGEBRAIC[14] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[33]*STATES[10]);
ALGEBRAIC[65] = ALGEBRAIC[14];
ALGEBRAIC[67] =  CONSTANTS[17]*(exp(ALGEBRAIC[29]/( CONSTANTS[0]*CONSTANTS[1])) - exp(ALGEBRAIC[65]/( CONSTANTS[0]*CONSTANTS[1])));
ALGEBRAIC[70] = - ALGEBRAIC[67];
ALGEBRAIC[71] = - ALGEBRAIC[67]+ALGEBRAIC[59];
ALGEBRAIC[72] = ALGEBRAIC[60] - ALGEBRAIC[68];
ALGEBRAIC[19] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[24]*STATES[16]);
ALGEBRAIC[35] = ALGEBRAIC[19];
ALGEBRAIC[4] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[39]*STATES[5]);
ALGEBRAIC[20] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[25]*STATES[8]);
ALGEBRAIC[74] = ALGEBRAIC[20]+ALGEBRAIC[4];
ALGEBRAIC[76] =  CONSTANTS[9]*(exp(ALGEBRAIC[35]/( CONSTANTS[0]*CONSTANTS[1])) - exp(ALGEBRAIC[74]/( CONSTANTS[0]*CONSTANTS[1])));
ALGEBRAIC[77] = ALGEBRAIC[76];
ALGEBRAIC[30] = ALGEBRAIC[14];
ALGEBRAIC[73] = ALGEBRAIC[8];
ALGEBRAIC[75] =  CONSTANTS[18]*(exp(ALGEBRAIC[30]/( CONSTANTS[0]*CONSTANTS[1])) - exp(ALGEBRAIC[73]/( CONSTANTS[0]*CONSTANTS[1])));
ALGEBRAIC[79] = ALGEBRAIC[67] - ALGEBRAIC[75];
ALGEBRAIC[80] = - ALGEBRAIC[40]+ALGEBRAIC[75];
ALGEBRAIC[81] = ALGEBRAIC[68] - ALGEBRAIC[76];
ALGEBRAIC[36] = ALGEBRAIC[20];
ALGEBRAIC[21] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[26]*STATES[21]);
ALGEBRAIC[78] = ALGEBRAIC[21];
ALGEBRAIC[82] =  CONSTANTS[10]*(exp(ALGEBRAIC[36]/( CONSTANTS[0]*CONSTANTS[1])) - exp(ALGEBRAIC[78]/( CONSTANTS[0]*CONSTANTS[1])));
ALGEBRAIC[84] = ALGEBRAIC[76] - ALGEBRAIC[82];
ALGEBRAIC[37] = ALGEBRAIC[21];
ALGEBRAIC[83] =  CONSTANTS[43]*ALGEBRAIC[0]+ CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[37]*STATES[2])+ CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[27]*STATES[22]);
ALGEBRAIC[85] =  CONSTANTS[11]*(exp(ALGEBRAIC[37]/( CONSTANTS[0]*CONSTANTS[1])) - exp(ALGEBRAIC[83]/( CONSTANTS[0]*CONSTANTS[1])));
ALGEBRAIC[86] =  CONSTANTS[43]*ALGEBRAIC[85]+ CONSTANTS[42]*ALGEBRAIC[68];
ALGEBRAIC[87] = - ALGEBRAIC[85]+ALGEBRAIC[82];
ALGEBRAIC[22] =  CONSTANTS[0]*CONSTANTS[1]*log( CONSTANTS[27]*STATES[22]);
ALGEBRAIC[38] = ALGEBRAIC[22];
ALGEBRAIC[88] = ALGEBRAIC[9]+ALGEBRAIC[6];
ALGEBRAIC[89] =  CONSTANTS[12]*(exp(ALGEBRAIC[38]/( CONSTANTS[0]*CONSTANTS[1])) - exp(ALGEBRAIC[88]/( CONSTANTS[0]*CONSTANTS[1])));
ALGEBRAIC[90] = ALGEBRAIC[85]+ALGEBRAIC[89]+ALGEBRAIC[42];
ALGEBRAIC[91] = ALGEBRAIC[89] - ALGEBRAIC[42];
ALGEBRAIC[92] = ALGEBRAIC[85] - ALGEBRAIC[89];
}